From af6d2f88349451aab3ca1f3b98e2295bb7787960 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 20 Dec 2022 14:23:27 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/sync_store_sku.go | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/business/jxstore/cms/sync_store_sku.go b/business/jxstore/cms/sync_store_sku.go index a5027984f..596a1282c 100644 --- a/business/jxstore/cms/sync_store_sku.go +++ b/business/jxstore/cms/sync_store_sku.go @@ -677,11 +677,14 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag // } } - //globals.SugarLogger.Debugf("== createList %s", utils.Format4Output(createList, false)) - //globals.SugarLogger.Debugf("== updateList %s", utils.Format4Output(updateList, false)) - //globals.SugarLogger.Debugf("== deleteList %s", utils.Format4Output(deleteList, false)) - //globals.SugarLogger.Debugf("== stockList %s", utils.Format4Output(stockList, false)) - //globals.SugarLogger.Debugf("== priceList %s", utils.Format4Output(priceList, false)) + if vendorID == model.VendorIDDD { + globals.SugarLogger.Debugf("== createList %s", utils.Format4Output(createList, false)) + globals.SugarLogger.Debugf("== updateList %s", utils.Format4Output(updateList, false)) + globals.SugarLogger.Debugf("== deleteList %s", utils.Format4Output(deleteList, false)) + globals.SugarLogger.Debugf("== stockList %s", utils.Format4Output(stockList, false)) + globals.SugarLogger.Debugf("== priceList %s", utils.Format4Output(priceList, false)) + } + task := tasksch.NewParallelTask("syncStoreSkuNew", tasksch.NewParallelConfig().SetParallelCount(1).SetIsContinueWhenError(isContinueWhenError2), ctx, func(task *tasksch.ParallelTask, batchItemList []interface{}, params ...interface{}) (retVal interface{}, err error) { step := batchItemList[0].(int)