From 3369456ac6de01e8703a9b38537406ec7c550bc5 Mon Sep 17 00:00:00 2001 From: wangpengfei <274878379@qq.com> Date: 星期五, 25 八月 2023 11:05:45 +0800 Subject: [PATCH] fix --- model/salesDetails.go | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/model/salesDetails.go b/model/salesDetails.go index a2659d8..ed81fab 100644 --- a/model/salesDetails.go +++ b/model/salesDetails.go @@ -30,7 +30,7 @@ Conditions string `json:"conditions" gorm:"column:conditions;type:text;comment:鏉′欢"` CreatorId int `json:"creatorId" gorm:"column:creator_id;type:int;comment:鍒涘缓浜篿d"` Remark string `json:"remark" gorm:"column:remark;type:text;comment:澶囨敞"` - Products []*Product `json:"products" gorm:"many2many:sales_details_product;"` + Products []*Product `json:"products" gorm:"many2many:SalesDetails_Product;"` LogisticCompany string `json:"logisticCompany" gorm:"column:logistic_company;type:varchar(255);comment:鐗╂祦鍏徃"` LogisticNumber string `json:"logisticNumber" gorm:"column:logistic_number;type:varchar(255);comment:鐗╂祦鍗曞彿"` LogisticCost float64 `json:"logisticCost" gorm:"column:logistic_cost;type:decimal(10,2);comment:鐗╂祦璐圭敤"` -- Gitblit v1.8.0