From d4bf53dd19a45ef09a367babcf7a2ac04ae1d08f Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期二, 17 十月 2023 14:31:31 +0800 Subject: [PATCH] bug修改 --- model/salesLeads.go | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/model/salesLeads.go b/model/salesLeads.go index 60b9017..f215ce4 100644 --- a/model/salesLeads.go +++ b/model/salesLeads.go @@ -9,7 +9,7 @@ type ( SalesLeads struct { Id int `json:"id" gorm:"column:id;primary_key;AUTO_INCREMENT"` - Name string `json:"name" gorm:"column:name;uniqueIndex:name_isDeleted_idx;;type:varchar(255);comment:鍏徃鍚嶇О"` + Name string `json:"name" gorm:"column:name;uniqueIndex:name_isDeleted_idx;;type:varchar(255);comment:瀹㈡埛鍚嶇О"` IsDeleted bool `json:"-" gorm:"column:is_deleted;uniqueIndex:name_isDeleted_idx;type:tinyint(1);comment:鏄惁鍒犻櫎"` Number string `json:"number" gorm:"column:number;type:varchar(255);comment:閿�鍞嚎绱㈢紪鍙�"` ContactName string `json:"contact_name" gorm:"column:contact_name;type:varchar(255);comment:鑱旂郴浜哄鍚�"` @@ -89,7 +89,7 @@ case int: if key == "member_id" { - db = db.Where("member_id = ?", v) + db = db.Where("sales_leads.member_id = ?", v) } } } -- Gitblit v1.8.0