1
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -5,6 +5,9 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
FieldStatus2 = "status"
|
||||
FieldSyncStatus2 = "sync_status"
|
||||
|
||||
FieldID = "ID"
|
||||
FieldParentID = "ParentID"
|
||||
FieldDeletedAt = "DeletedAt"
|
||||
|
||||
Reference in New Issue
Block a user