| | |
| | | ) |
| | | |
| | | type ( |
| | | // LocationProductAmount 库存产品数量 |
| | | LocationProductAmount struct { |
| | | WmsModel |
| | | Id int `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"` |
| | | LocationId int `json:"locationId" gorm:"type:int;not null;comment:位置id"` //位置id |
| | | WarehouseId int `json:"warehouseId" gorm:"type:int;not null;default:0;comment:仓库id"` |
| | | LocationId int `json:"locationId" gorm:"type:int;not null;comment:位置id"` //位置id |
| | | WarehouseId int `json:"warehouseId" gorm:"type:int;not null;default:0;comment:仓库id"` // 仓库id |
| | | Location Location `json:"location" gorm:"foreignKey:LocationId;references:id"` |
| | | ProductCategoryID int `json:"productCategoryId" gorm:"type:int;not null;comment:产品种类id"` //产品种类id |
| | | ProductCategory ProductCategory `json:"productCategory" gorm:"foreignKey:ProductCategoryID;references:Id"` |
| | |
| | | ProductName string `json:"productName" gorm:"column:product_name"` |
| | | Amount decimal.Decimal `json:"amount" gorm:"column:amount"` |
| | | AmountMoreUnits []UnitItems `json:"amountMoreUnits" gorm:"-"` //在库数量多单位 |
| | | Unit string `json:"unit" gorm:"column:unit"` |
| | | CreateDate string `json:"createDate" gorm:"column:create_date"` |
| | | Unit string `json:"unit" gorm:"column:unit;size:50;comment:物品单位"` |
| | | CreateDate string `json:"createDate" gorm:"column:create_date;size:50;comment:创建时间"` |
| | | AdjustAmount decimal.Decimal `json:"adjustAmount" gorm:"column:adjust_amount"` //差值 |
| | | DifferenceAmount decimal.Decimal `json:"differenceAmount" gorm:"-"` //计数数量 |
| | | OperationId int `json:"operationId" gorm:"column:operation_id"` |
| | | Status constvar.OperationStatus `json:"status" gorm:"status"` |
| | | BaseOperationType constvar.BaseOperationType `json:"baseOperationType" gorm:"base_operation_type"` |
| | | Weight decimal.Decimal `gorm:"type:decimal(20,3);comment:重量" json:"weight"` //重量 |
| | | OperationId int `json:"operationId" gorm:"column:operation_id;comment:库存操作记录"` |
| | | Status constvar.OperationStatus `json:"status" gorm:";comment:操作状态(3就绪、4完成、5取消)"` // 操作状态 |
| | | BaseOperationType constvar.BaseOperationType `json:"baseOperationType" gorm:"base_operation_type;comment:基础作业类型"` // 基础作业类型 |
| | | Weight decimal.Decimal `gorm:"type:decimal(20,3);comment:重量" json:"weight"` //重量 |
| | | } |
| | | ) |
| | | |