From 698196606421ef92880a621fe54faf8624b3f45a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Thu, 24 Sep 2020 09:17:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=A0=B8=E9=97=A8=E5=BA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxstore/cms/store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index e64f152fb..80b74c741 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -3619,7 +3619,7 @@ func StoreAudit(ctx *jxcontext.Context, storeAudits []*model.StoreAudit, status storeAudits[0].AuditStatus = model.StoreAuditStatusCreated //添加门店 storeExt := &StoreExt{} - utils.Map2StructByJson(utils.Struct2MapByJson(&storeAudit), &storeExt, false) + utils.Map2StructByJson(utils.Struct2MapByJson(&storeAudits[0]), &storeExt, false) storeID, err := CreateStore(ctx, storeExt, ctx.GetUserName()) if err != nil { return retVal, fmt.Errorf(err.Error()) @@ -3635,7 +3635,7 @@ func StoreAudit(ctx *jxcontext.Context, storeAudits []*model.StoreAudit, status } storeAudits[0].LastOperator = ctx.GetUserName() storeAudits[0].Remark = storeAudit.Remark - _, err = dao.UpdateEntity(db, storeAudits[0], "UserID", "Status", "Remark") + _, err = dao.UpdateEntity(db, storeAudits[0], "LastOperator", "Status", "Remark") //是否推送app消息 if err == nil {