zhangqian
2024-06-13 97d6acaf340b19d66244967b00dd2fdff410e034
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:"-"`
@@ -120,7 +121,7 @@
   UnitItems struct {
      Amount   decimal.Decimal `json:"amount"`
      Unit     string          `json:"unit"`
      Floating bool            `json:"floating"`
      Floating bool            `json:"floating"` //是否浮动利率
   }
)