From 34ef7217a034599217a7fdd1e28e1ae6910e1b4b Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期三, 11 十月 2023 20:15:21 +0800 Subject: [PATCH] 菜单获取编码规则 --- model/saleChance.go | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/model/saleChance.go b/model/saleChance.go index 99df3df..bc5ef40 100644 --- a/model/saleChance.go +++ b/model/saleChance.go @@ -46,6 +46,7 @@ Client Client `json:"client" gorm:"foreignKey:ClientId;references:Id"` CollectionProjections []CollectionProjection `json:"collection_projections" gorm:"foreignKey:SaleChanceId"` SalesSources SalesSources `json:"sales_sources"` + CodeStandID string `json:"codeStandID" gorm:"column:code_stand_id;type:varchar(255);comment:缂栫爜id"` Address gorm.Model `json:"-"` } @@ -189,3 +190,7 @@ slf.Orm = slf.Orm.Where("id in (?)", ids) return slf } +func (slf *SaleChanceSearch) UpdateByMap(data map[string]interface{}) error { + var db = slf.build() + return db.Updates(data).Error +} -- Gitblit v1.8.0