From aa8acf51f4ca960f20e4673dd88144bfa81d14aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 11 Jul 2024 14:55:25 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/sync_store_sku.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/business/jxstore/cms/sync_store_sku.go b/business/jxstore/cms/sync_store_sku.go index 4891e6a03..bb7f5d481 100644 --- a/business/jxstore/cms/sync_store_sku.go +++ b/business/jxstore/cms/sync_store_sku.go @@ -888,14 +888,20 @@ func syncStoreSkuNew(ctx *jxcontext.Context, parentTask tasksch.ITask, causeFlag } var failedList []*partner.StoreSkuInfoWithErr failedList, err = storeSkuHandler.UpdateStoreSkusPrice(ctx, storeDetail.VendorOrgCode, storeID, vendorStoreID, batchedStoreSkuList) + globals.SugarLogger.Debugf("===========1%s", utils.Format4Output(failedList, false)) + globals.SugarLogger.Debugf("===========2%v", err) failedList, err = buildFailedListAndErr(failedList, err, batchedStoreSkuList, nil, storeID, vendorID, "更新门店商品价格") if len(failedList) > 0 { task.AddFailedList(failedList) } + globals.SugarLogger.Debugf("===========3%s", utils.Format4Output(failedList, false)) + globals.SugarLogger.Debugf("===========4%v", err) successList := putils.UnselectStoreSkuListByVendorSkuIDs(batchedStoreSkuList, GetVendorSkuIDList(failedList)) if len(successList) > 0 { updateStoreSku(dao.GetDB(), vendorID, bareSku2Sync(successList), model.SyncFlagPriceMask) } + globals.SugarLogger.Debugf("===========5%s", utils.Format4Output(successList, false)) + globals.SugarLogger.Debugf("===========6%v", err) if isNeedHandleAct(causeFlag) { createStoreSkuActs(ctx, task, vendorID, storeDetail.VendorOrgCode, storeID, vendorStoreID, batchedStoreSkuList, true) }