From 530fed8ec225453572d57b15c200ab062c335457 Mon Sep 17 00:00:00 2001 From: zhangqian <zhangqian@123.com> Date: 星期三, 01 十一月 2023 19:20:21 +0800 Subject: [PATCH] 公海member_id使用0 --- service/priorityLevel.go | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/service/priorityLevel.go b/service/priorityLevel.go index ad487a2..257c34b 100644 --- a/service/priorityLevel.go +++ b/service/priorityLevel.go @@ -46,9 +46,7 @@ return ecode.DBErr } - err = model.NewPriorityLevelSearch().SetId(v.Id).Updates(map[string]interface{}{ - - }) + err = model.NewPriorityLevelSearch().SetId(v.Id).Updates(map[string]interface{}{}) if err != nil { return ecode.DBErr } @@ -58,9 +56,9 @@ } func (PriorityLevelService) UpdatePriorityLevel(priorityLevel *model.PriorityLevel) int { - err := model.NewPriorityLevelSearch().Save(priorityLevel) - if err != nil { - return ecode.DBErr - } + err := model.NewPriorityLevelSearch().SetId(priorityLevel.Id).Update(priorityLevel) + if err != nil { + return ecode.DBErr + } return ecode.OK } -- Gitblit v1.8.0