zhangqian
2024-06-21 9c7551a7a752c07db11b0fd23bfba8da1ad062e0
models/material.go
@@ -86,6 +86,7 @@
      NetWeight               decimal.Decimal `json:"netWeight" gorm:"type:decimal(20,3);comment:净重"`
      GrossUnit               string          `json:"grossUnit" gorm:"type:varchar(255);comment:毛重单位"`
      NetUnit                 string          `json:"netUnit" gorm:"type:varchar(255);comment:净重单位"`
      Attributes              []Attribute     `json:"attributes" gorm:"-"` //动态属性
      //以下为不存库的字段
      AttachmentIDs    []uint          `json:"attachmentIDs" gorm:"-"`
@@ -95,6 +96,7 @@
      MinInventoryRule decimal.Decimal `json:"minInventoryRule" gorm:"-"` //最小库存
      MaxInventoryRule decimal.Decimal `json:"maxInventoryRule" gorm:"-"` //最大库存
      CreateBy string `gorm:"type:varchar(255);comment:导入人、创建人" json:"createBy"` //创建人
   }
   MaterialSearch struct {