From a55e37f52c086f0b6eb22cba3b7aa78b77c9efd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 10 Feb 2025 17:41:34 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/store_sku.go | 1 + business/jxstore/cms/sync_store_sku.go | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index a91974d9d..89955cea3 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -1740,6 +1740,7 @@ func UpdateStoresSkus(ctx *jxcontext.Context, causeFlag int, storeIDs []int, sku } isAsync = asyncStoreSkuOpFilter(ctx, isAsync) num = int64(len(skuIDs)) + globals.SugarLogger.Debugf("--------num:=%d, %s", num, utils.Format4Output(skuIDs, false)) if num > 0 { hint, err = CurVendorSync.SyncStoresSkus(ctx, nil, causeFlag, db, nil, storeIDs, skuIDs, false, isAsync, isContinueWhenError) } diff --git a/business/jxstore/cms/sync_store_sku.go b/business/jxstore/cms/sync_store_sku.go index 015ddc3f3..6ee7fbe61 100644 --- a/business/jxstore/cms/sync_store_sku.go +++ b/business/jxstore/cms/sync_store_sku.go @@ -555,6 +555,9 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag // if vendorID == model.VendorIDJDShop { // formalizeStoreSkuListForJds(skus) // } + if storeID == 20002 { + 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) @@ -754,6 +757,15 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag } } + if storeID == 20002 { + 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("---------onlineList := %s", utils.Format4Output(onlineList, false)) + globals.SugarLogger.Debugf("---------priceList := %s", utils.Format4Output(priceList, 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) {