From 362903a76ad660a594bf2559708262a10b232c2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 12 Jan 2024 10:47:44 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/sync.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/business/jxstore/cms/sync.go b/business/jxstore/cms/sync.go index f4f871480..83d933872 100644 --- a/business/jxstore/cms/sync.go +++ b/business/jxstore/cms/sync.go @@ -231,6 +231,7 @@ func (v *VendorSync) SyncReorderCategories(ctx *jxcontext.Context, db *dao.DaoDB // } func (v *VendorSync) SyncStore2(ctx *jxcontext.Context, db *dao.DaoDB, vendorIDs, storeIDs []int, mustDirty, isAsync bool) (hint string, err error) { + globals.SugarLogger.Debugf("==============storeMap %s , %s", utils.Format4Output(vendorIDs, false), utils.Format4Output(storeIDs, false)) userName := ctx.GetUserName() 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) { @@ -683,6 +684,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.Debugf("=========storeMapList := %s", utils.Format4Output(storeMapList, false)) if len(storeMapList) == 0 { return nil, "", nil }