SetStoresMapSyncStatus
This commit is contained in:
@@ -1167,7 +1167,7 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor
|
||||
}
|
||||
}
|
||||
// 暂时不开放isSync
|
||||
if payload["isSync"] != nil {
|
||||
if isSync, ok := payload["isSync"].(int); ok && isSync == 0 {
|
||||
delete(payload, "isSync")
|
||||
}
|
||||
if db == nil {
|
||||
|
||||
@@ -232,6 +232,7 @@ func doDailyWork() {
|
||||
cms.SyncStoresCourierInfo(jxcontext.AdminCtx, nil, false, true)
|
||||
netprinter.RebindAllPrinters(jxcontext.AdminCtx, false, true)
|
||||
|
||||
dao.SetStoresMapSyncStatus(dao.GetDB(), nil, nil, model.SyncFlagStoreStatus)
|
||||
cms.CurVendorSync.SyncStore2(jxcontext.AdminCtx, dao.GetDB(), nil, nil, true, true)
|
||||
|
||||
syncStoreSku()
|
||||
|
||||
Reference in New Issue
Block a user