1
This commit is contained in:
@@ -695,6 +695,7 @@ func (v *VendorSync) LoopStoresMap2(ctx *jxcontext.Context, parentTask tasksch.I
|
||||
if storeMapList, err = dao.GetStoresMapList2(db, vendorIDs, storeIDs, nil, model.StoreStatusAll, model.StoreIsSyncYes, "", "", "", mustDirty); err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
globals.SugarLogger.Debug("===============len(storeMapList)", len(storeMapList))
|
||||
if len(storeMapList) == 0 {
|
||||
return nil, "", nil
|
||||
}
|
||||
@@ -711,9 +712,13 @@ func (v *VendorSync) LoopStoresMap2(ctx *jxcontext.Context, parentTask tasksch.I
|
||||
}
|
||||
index++
|
||||
}
|
||||
globals.SugarLogger.Debug("===============len(storeMapList)1111111111", vendorStoreMap)
|
||||
|
||||
if len(loopInfoList) == 1 {
|
||||
globals.SugarLogger.Debug("===============len(storeMapList)22222")
|
||||
taskName = fmt.Sprintf("%s,处理平台%s", taskName, model.VendorChineseNames[loopInfoList[0].VendorID])
|
||||
}
|
||||
globals.SugarLogger.Debug("===============len(storeMapList)3333")
|
||||
|
||||
task = tasksch.NewParallelTask(taskName, tasksch.NewParallelConfig().SetIsContinueWhenError(true), ctx, handler, loopInfoList)
|
||||
if isAsync {
|
||||
|
||||
Reference in New Issue
Block a user