From 93e7cb9c4f7037aa4f32be9201e61a112f75ed04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 17 Nov 2022 15:41:31 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/sync_store_sku.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/business/jxstore/cms/sync_store_sku.go b/business/jxstore/cms/sync_store_sku.go index 6bcdeed26..a23bb6605 100644 --- a/business/jxstore/cms/sync_store_sku.go +++ b/business/jxstore/cms/sync_store_sku.go @@ -450,6 +450,7 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag } else { skus, err = dao.GetStoreSkus(db, vendorID, storeID, skuIDs) } + globals.SugarLogger.Debugf("skus := %s", utils.Format4Output(skus, false)) if err != nil || len(skus) == 0 { return err @@ -676,6 +677,15 @@ 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("===============priceList%s", utils.Format4Output(priceList, false)) + globals.SugarLogger.Debugf("===============stockList%s", utils.Format4Output(stockList, false)) + globals.SugarLogger.Debugf("==============onlineList=%s", utils.Format4Output(onlineList, false)) + globals.SugarLogger.Debugf("===============offlineList %s", utils.Format4Output(offlineList, false)) + globals.SugarLogger.Debugf("===============offlineList %s", utils.Format4Output(offlineList, 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)