From 8248aa2908cf04aa30eec1a98f5023d362a3724e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 16 Aug 2024 15:47:53 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/sync_store_sku.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/business/jxstore/cms/sync_store_sku.go b/business/jxstore/cms/sync_store_sku.go index 5809e298d..10f2426ad 100644 --- a/business/jxstore/cms/sync_store_sku.go +++ b/business/jxstore/cms/sync_store_sku.go @@ -551,6 +551,9 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag // if vendorID == model.VendorIDJDShop { // formalizeStoreSkuListForJds(skus) // } + if storeID == 668428 { + globals.SugarLogger.Debugf("============skus : %s", utils.Format4Output(skus, false)) + } singleStoreHandler, _ := partner.GetPurchasePlatformFromVendorID(vendorID).(partner.ISingleStoreStoreSkuHandler) storeSkuHandler := partner.GetPurchasePlatformFromVendorID(vendorID).(partner.IPurchasePlatformStoreSkuHandler) reorderHandler, _ := partner.GetPurchasePlatformFromVendorID(vendorID).(partner.IStoreSkuSorter) @@ -751,6 +754,15 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag } + if storeID == 668428 { + globals.SugarLogger.Debugf("============1 : %s", utils.Format4Output(createList, false)) + globals.SugarLogger.Debugf("============2 : %s", utils.Format4Output(deleteList, false)) + globals.SugarLogger.Debugf("============3 : %s", utils.Format4Output(updateList, false)) + globals.SugarLogger.Debugf("============4 : %s", utils.Format4Output(stockList, false)) + globals.SugarLogger.Debugf("============5 : %s", utils.Format4Output(onlineList, false)) + globals.SugarLogger.Debugf("============6 : %s", utils.Format4Output(offlineList, false)) + globals.SugarLogger.Debugf("============7 : %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)