model/quotation.go
@@ -3,6 +3,7 @@ import ( "aps_crm/pkg/mysqlx" "fmt" "github.com/shopspring/decimal" "gorm.io/gorm" ) @@ -27,6 +28,7 @@ SaleChance SaleChance `json:"sale_chance" gorm:"foreignKey:SaleChanceId"` Products []Product `json:"products" gorm:"many2many:quotation_product"` CodeStandID string `json:"codeStandID" gorm:"column:code_stand_id;type:varchar(255);comment:编码id"` AmountTotal decimal.Decimal `gorm:"-" json:"amountTotal"` //价格合计 gorm.Model `json:"-"` }