jiangshuai
2023-10-20 96844c22ef3fba86a55e0af1b51bc1009d6fa950
request/location_product_amount.go
@@ -1,15 +1,34 @@
package request
import "github.com/shopspring/decimal"
import (
   "github.com/shopspring/decimal"
)
type AddLocationProductAmount struct {
   LocationProductAmountId int             `json:"locationProductAmountId"` //库存盘点id
   AdjustAmount            decimal.Decimal `json:"adjustAmount" `           //差值
   DifferenceAmount        decimal.Decimal `json:"difference_amount"`       //计数数量
   AdjustAmount     decimal.Decimal `json:"adjustAmount" `    //差值
   DifferenceAmount decimal.Decimal `json:"differenceAmount"` //计数数量
   Amount           decimal.Decimal `json:"Amount"`           //库存数量
   ProductId        string          `json:"productId"`
   LocationId       int             `json:"locationId"`
}
type UpdateLocationProductAmount struct {
   LocationProductAmountId int             `json:"locationProductAmountId"` //库存盘点id
   AdjustAmount            decimal.Decimal `json:"adjustAmount" `           //差值
   DifferenceAmount        decimal.Decimal `json:"difference_amount"`       //计数数量
   //LocationProductAmountId int             `json:"locationProductAmountId"` //库存盘点id
   AdjustAmount     decimal.Decimal `json:"adjustAmount" `    //差值
   DifferenceAmount decimal.Decimal `json:"differenceAmount"` //计数数量
   Amount           decimal.Decimal `json:"amount"`           //库存数量
   ProductId        string          `json:"productId"`        //产品id
   OperationId      int             `json:"operationId"`      //出入库id
   LocationId       int             `json:"locationId"`       //位置id
}
type GetRuleList struct {
   LocationId int    `json:"locationId"` //位置id
   ProductId  string `json:"productId"`  //产品id
}
type FinishLocationProductAmount struct {
   OperationId             int    `json:"operationId"`             //出入库id
   ProductId               string `json:"productId"`               //产品id
   LocationProductAmountId int    `json:"locationProductAmountId"` //库存盘点id
}