updateActPrice4StoreSkuNameNew中,skuIDs为空,会导致性能极低,所以要skuIDs必须有值
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user