From 34ef7217a034599217a7fdd1e28e1ae6910e1b4b Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期三, 11 十月 2023 20:15:21 +0800 Subject: [PATCH] 菜单获取编码规则 --- model/contract.go | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/model/contract.go b/model/contract.go index 2597428..35a23a7 100644 --- a/model/contract.go +++ b/model/contract.go @@ -19,6 +19,7 @@ ServiceContractStatus ServiceContractStatus `json:"serviceContractStatus" gorm:"foreignKey:StatusId;references:Id"` File string `json:"file" gorm:"column:file;type:varchar(255);comment:鍚堝悓鏂囦欢"` CreatedAt *CustomTime `json:"created_at" gorm:"column:created_at;type:datetime;comment:鍒涘缓鏃堕棿"` + CodeStandID string `json:"codeStandID" gorm:"column:code_stand_id;type:varchar(255);comment:缂栫爜id"` gormModel } @@ -141,3 +142,7 @@ slf.Orm = slf.Orm.Where("id in (?)", ids) return slf } +func (slf *ContractSearch) UpdateByMap(data map[string]interface{}) error { + var db = slf.build() + return db.Updates(data).Error +} -- Gitblit v1.8.0