zhangqian
2024-07-05 dec0da77e3537bcd71bb31067258194327da9bfa
request/operation.go
@@ -46,6 +46,7 @@
   ProductId   string `json:"productId" gorm:"type:varchar(191);not null;comment:产品id"` //产品id
   //ProductName string          `json:"productName" gorm:"type:varchar(255);not null;comment:产品名称"` //产品名称
   Amount decimal.Decimal `json:"amount" gorm:"type:decimal(20,2);not null;comment:数量"` //数量
   StockAmount decimal.Decimal `json:"stockAmount" gorm:"type:decimal(30,10);"`                //库存数量,盘点时用
   //Unit        string          `json:"unit" gorm:"type:varchar(31);comment:单位"`                    //单位
   //Product models.Material `json:"product" gorm:"foreignKey:ProductId;references:ID"`
   FromLocationId   int             `json:"fromLocationId"   gorm:"type:int;not null;comment:源位置id"` //源位置id