From a9acbc5ca0bcdcaf5b6b521d793980b175c171ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 15 Dec 2022 18:23:30 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/sync_store_sku.go | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/business/jxstore/cms/sync_store_sku.go b/business/jxstore/cms/sync_store_sku.go index 27f1bec9d..a5027984f 100644 --- a/business/jxstore/cms/sync_store_sku.go +++ b/business/jxstore/cms/sync_store_sku.go @@ -281,9 +281,6 @@ func storeSkuSyncInfo2Bare(inSku *dao.StoreSkuSyncInfo) (outSku *partner.StoreSk } func calVendorPrice4StoreSku(inSku *dao.StoreSkuSyncInfo, pricePercentagePack model.PricePercentagePack, pricePercentage int) (outSku *dao.StoreSkuSyncInfo) { - globals.SugarLogger.Debugf("=======calVendorPrice4StoreSku==inSku== %s", utils.Format4Output(inSku, false)) - globals.SugarLogger.Debugf("=======calVendorPrice4StoreSku==pricePercentagePack== %s", utils.Format4Output(pricePercentagePack, false)) - globals.SugarLogger.Debugf("=======calVendorPrice4StoreSku==VendorPrice== %d", inSku.VendorPrice) if inSku.VendorPrice <= 0 { // 避免重新计算 inSku.VendorPrice = int64(jxutils.CaculatePriceByPricePack(pricePercentagePack, pricePercentage, int(inSku.Price))) if inSku.VendorPrice <= 0 { @@ -680,15 +677,11 @@ 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("== onlineList %s", utils.Format4Output(onlineList, false)) - globals.SugarLogger.Debugf("== priceList %s", utils.Format4Output(priceList, false)) - globals.SugarLogger.Debugf("== updateItems %s", utils.Format4Output(updateItems, false)) - globals.SugarLogger.Debugf("== reorderSkuMap %s", utils.Format4Output(reorderSkuMap, false)) - globals.SugarLogger.Debugf("== updateItems %s", utils.Format4Output(updateItems, false)) + //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)