From 5c3b42bb561c1731c0922d74f4ffc089f6b24268 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 18 八月 2023 19:16:00 +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