From 6435697089841288f56097e9e47112ea7a685374 Mon Sep 17 00:00:00 2001 From: richboo111 Date: Wed, 16 Nov 2022 11:42:32 +0800 Subject: [PATCH] mt price --- business/jxstore/cms/store_sku.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index e49117209..1d417b296 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -6646,6 +6646,7 @@ func BatchSetRestockingPrice(ctx *jxcontext.Context, preData map[string][]mtwmap if storeID, vendorOrgCode, err := dao.GetCodeAndIDByMeiTuan(k); err != nil { return errors.New(fmt.Sprintf("获取京西本地门店ID失败:%v 请重试", err)) } else { + globals.SugarLogger.Debugf("检查数据storeID=%d vendorOrgCode=%s", storeID, vendorOrgCode) for _, i := range v { param := &mtwmapi.SpuData{ AppSpuCode: i.AppSpuCode, @@ -6654,6 +6655,9 @@ func BatchSetRestockingPrice(ctx *jxcontext.Context, preData map[string][]mtwmap } params = append(params, param) } + if len(params) > 0 { + globals.SugarLogger.Debugf("params=========%s %s %s", params[0].AppSpuCode, params[0].PurchasePrice, params[0].SkuID) + } if err := mtwm.GetAPI(vendorOrgCode, storeID, "").BatchSetRestockingPrice(ctx.GetTrackInfo(), k, params); err != nil { return err }