From 34ef7217a034599217a7fdd1e28e1ae6910e1b4b Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期三, 11 十月 2023 20:15:21 +0800 Subject: [PATCH] 菜单获取编码规则 --- model/salesRefund.go | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/model/salesRefund.go b/model/salesRefund.go index c68a0e9..5218841 100644 --- a/model/salesRefund.go +++ b/model/salesRefund.go @@ -29,6 +29,7 @@ Reason string `json:"reason" gorm:"column:reason;type:varchar(255);comment:閫�娆惧師鍥�"` Products []*Product `json:"products" gorm:"many2many:salesRefund_product;"` AmountTotal decimal.Decimal `gorm:"column:amount_total;type:decimal(12,2);comment:浠风◣鍚堣" json:"amountTotal"` // 浠风◣鍚堣 + CodeStandID string `json:"codeStandID" gorm:"column:code_stand_id;type:varchar(255);comment:缂栫爜id"` CrmModel } @@ -205,3 +206,8 @@ slf.OrderBy = order return slf } + +func (slf *SalesRefundSearch) UpdateByMap(data map[string]interface{}) error { + var db = slf.build() + return db.Updates(data).Error +} -- Gitblit v1.8.0