From 21e67f90d63fa852f79e4c0f3661e2e73793dc55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Sun, 18 Feb 2024 11:02:34 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/store.go | 5 ++--- business/model/model.go | 3 +++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 9045e8357..d3f536a4e 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -1137,13 +1137,12 @@ func UpdateStore(ctx *jxcontext.Context, storeID int, payload map[string]interfa kv := make(map[string]interface{}) if valid["status"] != nil { //if syncStatus&model.SyncFlagStoreStatus != 0 && status == model.StoreStatusOpened { - kv[model.FieldStatus] = status + kv[model.FieldStatus2] = status //} } - globals.SugarLogger.Debugf("data := %s,%d", utils.Format4Output(kv, false), store.ID) _, err2 := dao.UpdateEntityLogicallyAndUpdateSyncStatus(db, dummy, kv, userName, map[string]interface{}{ model.FieldStoreID: store.ID, - }, model.FieldSyncStatus, syncStatus) + }, model.FieldSyncStatus2, syncStatus) if err = err2; err == nil { dao.Commit(db, txDB) _, err = CurVendorSync.SyncStore(ctx, db, -1, store.ID, false, userName) diff --git a/business/model/model.go b/business/model/model.go index 69bc36e88..020e59664 100644 --- a/business/model/model.go +++ b/business/model/model.go @@ -5,6 +5,9 @@ import ( ) const ( + FieldStatus2 = "status" + FieldSyncStatus2 = "sync_status" + FieldID = "ID" FieldParentID = "ParentID" FieldDeletedAt = "DeletedAt"