diff --git a/business/jxstore/cms/store.go b/business/jxstore/cms/store.go index 6b11f1887..03151e971 100644 --- a/business/jxstore/cms/store.go +++ b/business/jxstore/cms/store.go @@ -1919,7 +1919,6 @@ func UpdateStoreVendorMap(ctx *jxcontext.Context, db *dao.DaoDB, storeID, vendor valid["address"] = address } - globals.SugarLogger.Debugf("===============aa:= %s", utils.Format4Output(isUpdateStoreNeedSync(valid), false)) if isUpdateStoreNeedSync(valid) { // 同步修改门店已经配送门店 _, err = CurVendorSync.SyncStore(ctx, db, vendorID, storeID, false, userName) //updateCourierStores(ctx, storeID) diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index 96caa6dd1..a768d91cd 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -235,11 +235,13 @@ func (v *VendorSync) SyncStore2(ctx *jxcontext.Context, db *dao.DaoDB, vendorIDs isManageIt := len(storeIDs) == 0 || len(storeIDs) > 5 _, hint, err = v.LoopStoresMap2(ctx, nil, db, fmt.Sprintf("同步门店信息:%v", storeIDs), isAsync, isManageIt, vendorIDs, storeIDs, mustDirty, func(t *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (resultList interface{}, err error) { loopMapInfo := batchItemList[0].(*LoopStoreMapInfo) + globals.SugarLogger.Debugf("==============handler %s", utils.Format4Output(loopMapInfo, false)) var failedList []*partner.StoreSkuInfoWithErr handler := v.GetStoreHandler(loopMapInfo.VendorID) - globals.SugarLogger.Debugf("==============handler %s , %s", utils.Format4Output(handler, false), utils.Format4Output(loopMapInfo.VendorID, false)) if handler != nil { + globals.SugarLogger.Debugf("==============handler %s", "11111111111") if len(loopMapInfo.StoreMapList) > 1 { + globals.SugarLogger.Debugf("==============handler2 %s", "11111111111") loopStoreTask := tasksch.NewParallelTask(fmt.Sprintf("处理平台%s", model.VendorChineseNames[loopMapInfo.VendorID]), tasksch.NewParallelConfig().SetIsContinueWhenError(true), ctx, func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) { var resultList []interface{}