jiangshuai
2023-09-28 84efc2b9cc81fadfffe35c6e3a07dd735ef46a98
models/location_product_amount.go
@@ -29,16 +29,17 @@
   LocationProductAmountWithOperation struct {
      //LocationProductAmount LocationProductAmount `json:"locationProductAmount"`
      LocationId       int             `json:"locationId" gorm:"column:location_id"`
      LocationName     string          `json:"locationName" gorm:"column:location_name"`
      ProductId        string          `json:"productId" gorm:"column:product_id"`
      ProductName      string          `json:"productName" gorm:"column:product_name"`
      Amount           decimal.Decimal `json:"amount" gorm:"column:amount"`
      Unit             string          `json:"unit" gorm:"column:unit"`
      CreateDate       string          `json:"createDate" gorm:"column:create_date"`
      AdjustAmount     decimal.Decimal `json:"adjustAmount" gorm:"column:adjust_amount"`
      DifferenceAmount decimal.Decimal `json:"differenceAmount" gorm:"-"`
      OperationId      int             `json:"operationId" gorm:"column:operation_id"`
      LocationProductAmountId int             `json:"locationProductAmount" gorm:"location_product_amount_id"`
      LocationId              int             `json:"locationId" gorm:"column:location_id"`
      LocationName            string          `json:"locationName" gorm:"column:location_name"`
      ProductId               string          `json:"productId" gorm:"column:product_id"`
      ProductName             string          `json:"productName" gorm:"column:product_name"`
      Amount                  decimal.Decimal `json:"amount" gorm:"column:amount"`
      Unit                    string          `json:"unit" gorm:"column:unit"`
      CreateDate              string          `json:"createDate" gorm:"column:create_date"`
      AdjustAmount            decimal.Decimal `json:"adjustAmount" gorm:"column:adjust_amount"`
      DifferenceAmount        decimal.Decimal `json:"differenceAmount" gorm:"-"`
      OperationId             int             `json:"operationId" gorm:"column:operation_id"`
   }
)