From dd9bae15d6797610acd9e628ed410b39ed544b38 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:06:29 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/store.go | 4 ++-- business/model/model.go | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index d3f536a4e..ed6098102 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -1137,12 +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.FieldStatus2] = status + kv[model.FieldStatus] = status //} } _, err2 := dao.UpdateEntityLogicallyAndUpdateSyncStatus(db, dummy, kv, userName, map[string]interface{}{ model.FieldStoreID: store.ID, - }, model.FieldSyncStatus2, syncStatus) + }, model.FieldSyncStatus, 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 020e59664..69bc36e88 100644 --- a/business/model/model.go +++ b/business/model/model.go @@ -5,9 +5,6 @@ import ( ) const ( - FieldStatus2 = "status" - FieldSyncStatus2 = "sync_status" - FieldID = "ID" FieldParentID = "ParentID" FieldDeletedAt = "DeletedAt"