diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index 2a026b0a7..eadd36449 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -247,7 +247,6 @@ func UpdateStoreSkus(ctx *jxcontext.Context, storeID int, skuBindInfos []*StoreS } func updateStoreSkusWithoutSync(ctx *jxcontext.Context, storeID int, skuBindInfos []*StoreSkuBindInfo, userName string) (needSyncSkus []int, err error) { - var num int64 db := dao.GetDB() needSyncIDMap := make(map[int]int) dao.Begin(db) @@ -282,8 +281,9 @@ func updateStoreSkusWithoutSync(ctx *jxcontext.Context, storeID int, skuBindInfo } } for _, v := range allBinds { + var num int64 inSkuBind := inSkuBinsMap[v.RealSkuID] - globals.SugarLogger.Debug(utils.Format4Output(inSkuBind, false)) + // globals.SugarLogger.Debug(utils.Format4Output(inSkuBind, false)) var skuBind *model.StoreSkuBind if v.ID == 0 { if skuBindInfo.IsFocus == 1 { diff --git a/business/jxutils/jxutils_cms.go b/business/jxutils/jxutils_cms.go index 8eb77ba8d..4832690cf 100644 --- a/business/jxutils/jxutils_cms.go +++ b/business/jxutils/jxutils_cms.go @@ -110,6 +110,7 @@ func IntMap2List(intMap map[int]int) []int { index := 0 for k := range intMap { retVal[index] = k + index++ } return retVal }