From c13e4018f3c9cace2faf0e33763791d2f64671a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Tue, 19 Nov 2024 14:00:20 +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 a18235380..cf17db515 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -2000,9 +2000,6 @@ 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 { @@ -2399,6 +2396,7 @@ func formatAutoSaleTime(autoSaleTime time.Time) (outAutoSaleTime time.Time) { // todo 应该用updateStoresSkusWithoutSync实现 func updateStoreSkusSaleWithoutSync(ctx *jxcontext.Context, storeID int, skuBindSkuInfos []*StoreSkuBindSkuInfo, autoSaleTime time.Time, ignoreDontSale bool, userName string) (needSyncSkus []int, err error) { + globals.SugarLogger.Debugf("------skuBindSkuInfos := %s", utils.Format4Output(skuBindSkuInfos, false)) var num int64 db := dao.GetDB() needSyncIDMap := make(map[int]int) @@ -2417,6 +2415,7 @@ func updateStoreSkusSaleWithoutSync(ctx *jxcontext.Context, storeID int, skuBind } }() storeSkuList, err := dao.GetStoresSkusInfo(db, []int{storeID}, jxutils.IntMap2List(skuIDMap)) + globals.SugarLogger.Debugf("------storeSkuList := %s", utils.Format4Output(storeSkuList, false)) if err != nil { dao.Rollback(db, txDB) return nil, err @@ -3684,6 +3683,7 @@ func AutoSaleStoreSku(ctx *jxcontext.Context, storeIDs []int, isNeedSync bool) ( } } if isNeedSync && len(skuIDs) > 0 { + globals.SugarLogger.Debugf("-----AutoSaleStoreSku := %d,%s", storeIDs, utils.Format4Output(skuIDs, false)) if _, err = CurVendorSync.SyncStoresSkus(ctx, nil, model.SyncFlagSaleMask, db, nil, []int{storeID}, skuIDs, true, true, true); err != nil { return err }