zhangqian
2024-07-31 076f911a3b8d09364d1d8c98a92b48e601ae6a21
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
package request
 
import (
    "github.com/shopspring/decimal"
)
 
type GetList struct {
    PageInfo
    Keyword string `json:"keyword"`
}
 
type AddLocationProductAmount struct {
    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:"differenceAmount"`  //计数数量
    Amount            decimal.Decimal `json:"amount"`            //库存数量
    ProductId         string          `json:"productId"`         //产品id
    OperationId       int             `json:"operationId"`       //出入库id
    LocationId        int             `json:"locationId"`        //位置id
    ProductCategoryId int             `json:"productCategoryId"` //产品种类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
}
 
type GetLocationProductList struct {
    PageInfo
    Keyword     string `json:"keyword"`
    WarehouseId int    `json:"warehouseId"`
    LocationId  int    `json:"locationId"`
    CategoryIds []int  `json:"categoryIds"`
}