liujiandao
2024-03-14 ac0318fc8120bb1452220fd8e586b8e04a1df26a
model/purchase/purchase_products.go
@@ -8,8 +8,8 @@
type PurchaseProducts struct {
   global.GVA_MODEL
   PurchaseId int                   `json:"purchaseId" form:"purchaseType" gorm:"type:int(11);not null;default 0;comment:采购类型id"` // 采购id
   ProductId  int                   `json:"productId" form:"productId" gorm:"type:int;not null;default 0;comment:产品id"`           // 产品id
   PurchaseId int                   `json:"purchaseId" form:"purchaseType" gorm:"type:int(11);not null;default 0;comment:采购单id"` // 采购id
   ProductId  int                   `json:"productId" form:"productId" gorm:"type:int;not null;default 0;comment:产品id"`          // 产品id
   Product    test.SupplierMaterial `json:"-" gorm:"foreignKey:ProductId"`
   Amount     decimal.Decimal       `json:"amount" form:"amount" gorm:"type:decimal(12,2);not null;default 0;comment:采购数量"`  // 采购数量
   Price      decimal.Decimal       `json:"price" form:"price" gorm:"type:decimal(12,2);not null;default 0.00;comment:采购单价"` // 采购单价