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/invoiceStatus.go | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/service/invoiceStatus.go b/service/invoiceStatus.go index 4b42bf8..92fbcfe 100644 --- a/service/invoiceStatus.go +++ b/service/invoiceStatus.go @@ -46,9 +46,7 @@ return ecode.DBErr } - err = model.NewInvoiceStatusSearch().SetId(v.Id).Updates(map[string]interface{}{ - - }) + err = model.NewInvoiceStatusSearch().SetId(v.Id).Updates(map[string]interface{}{}) if err != nil { return ecode.DBErr } @@ -58,9 +56,9 @@ } func (InvoiceStatusService) UpdateInvoiceStatus(invoiceStatus *model.InvoiceStatus) int { - err := model.NewInvoiceStatusSearch().SetId(invoiceStatus.Id).Save(invoiceStatus) - if err != nil { - return ecode.DBErr - } + err := model.NewInvoiceStatusSearch().SetId(invoiceStatus.Id).Update(invoiceStatus) + if err != nil { + return ecode.DBErr + } return ecode.OK } -- Gitblit v1.8.0