From bd9dbb0abecbe2e8d0077125ba75da92f40f6b3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Thu, 10 Oct 2024 15:44:42 +0800 Subject: [PATCH] 1 --- business/jxstore/cms/store_sku.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index bfe3bc715..7d265f3de 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -2006,6 +2006,9 @@ func updateStoresSkusWithoutSync(ctx *jxcontext.Context, db *dao.DaoDB, storeIDs for _, v := range inSkuBinds { inSkuBinsMap[v.SkuID] = v } + if storeID == 668470 { + globals.SugarLogger.Debugf("------------inSkuBinsMap := %s", utils.Format4Output(inSkuBinsMap, false)) + } unitPrice := 0 if skuBindInfo.UnitPrice != 0 { if skuBindInfo.UnitPrice > MaxSkuUnitPrice { @@ -2046,9 +2049,6 @@ func updateStoresSkusWithoutSync(ctx *jxcontext.Context, db *dao.DaoDB, storeIDs Status: model.StoreSkuBindStatusDontSale, // 缺省不可售? } skuBind.JxPrice = jxutils.CaculatePriceByPricePack(storeDetail.PricePercentagePackObj, int(storeDetail.PricePercentage), skuBind.Price) - if storeID == 668470 { - globals.SugarLogger.Debugf("---------------skuBind := %s", utils.Format4Output(skuBind, false)) - } tmpStatus := getSkuSaleStatus(inSkuBind, skuBindInfo) if storeID == 668470 { globals.SugarLogger.Debugf("---------------tmpStatus := %s", utils.Format4Output(tmpStatus, false))