diff --git a/business/jxstore/cms/store_sku.go b/business/jxstore/cms/store_sku.go index d53e134c4..cc69d738d 100644 --- a/business/jxstore/cms/store_sku.go +++ b/business/jxstore/cms/store_sku.go @@ -529,10 +529,11 @@ func updateUnitPrice4StoreSkuNameNew(db *dao.DaoDB, skuNamesInfo *StoreSkuNamesI return err } +// skuIDs为空,会导致性能极低,所以要skuIDs必须有值 func updateActPrice4StoreSkuNameNew(db *dao.DaoDB, storeIDs, skuIDs []int, skuNamesInfo *StoreSkuNamesInfo) (err error) { - // if len(skuIDs) == 0 { - // return nil - // } + if len(skuIDs) == 0 { + return nil + } actStoreSkuList, err := dao.GetEffectiveActStoreSkuInfo(db, 0, nil, storeIDs, skuIDs, time.Now(), time.Now()) if err != nil { globals.SugarLogger.Errorf("updateActPrice4StoreSkuNameNew can not get sku promotion info for error:%v", err)