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"