diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index 46c9e94d1..0415093ef 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -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 {