| | |
| | | if params.Page*params.PageSize > 0 { |
| | | db = db.Offset((params.Page - 1) * params.PageSize).Limit(params.PageSize) |
| | | } |
| | | if err := db.Find(&records).Error; err != nil { |
| | | if err := db.Order("wms_operation.created_at desc").Find(&records).Error; err != nil { |
| | | util.ResponseFormat(c, code.RequestError, fmt.Errorf("find count err: %v", err)) |
| | | return |
| | | } |
| | |
| | | "request.UpdateLocationProductAmount": { |
| | | "type": "object", |
| | | "properties": { |
| | | "Amount": { |
| | | "description": "库存数量", |
| | | "type": "number" |
| | | }, |
| | | "adjustAmount": { |
| | | "description": "LocationProductAmountId int ` + "`" + `json:\"locationProductAmountId\"` + "`" + ` //库存盘点id", |
| | | "type": "number" |
| | | }, |
| | | "amount": { |
| | | "description": "库存数量", |
| | | "type": "number" |
| | | }, |
| | | "differenceAmount": { |
| | | "description": "计数数量", |
| | | "type": "number" |
| | |
| | | "request.UpdateLocationProductAmount": { |
| | | "type": "object", |
| | | "properties": { |
| | | "Amount": { |
| | | "description": "库存数量", |
| | | "type": "number" |
| | | }, |
| | | "adjustAmount": { |
| | | "description": "LocationProductAmountId int `json:\"locationProductAmountId\"` //库存盘点id", |
| | | "type": "number" |
| | | }, |
| | | "amount": { |
| | | "description": "库存数量", |
| | | "type": "number" |
| | | }, |
| | | "differenceAmount": { |
| | | "description": "计数数量", |
| | | "type": "number" |
| | |
| | | type: object |
| | | request.UpdateLocationProductAmount: |
| | | properties: |
| | | Amount: |
| | | description: 库存数量 |
| | | type: number |
| | | adjustAmount: |
| | | description: LocationProductAmountId int `json:"locationProductAmountId"` |
| | | //库存盘点id |
| | | type: number |
| | | amount: |
| | | description: 库存数量 |
| | | type: number |
| | | differenceAmount: |
| | | description: 计数数量 |
| | | type: number |