fix: selectBatchIds 已过期
This commit is contained in:
@@ -154,7 +154,7 @@ public class BargainActivityServiceImpl implements BargainActivityService {
|
||||
|
||||
@Override
|
||||
public List<BargainActivityDO> getBargainActivityList(Set<Long> ids) {
|
||||
return bargainActivityMapper.selectBatchIds(ids);
|
||||
return bargainActivityMapper.selectByIds(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -132,7 +132,7 @@ public class CouponTemplateServiceImpl implements CouponTemplateService {
|
||||
|
||||
@Override
|
||||
public List<CouponTemplateDO> getCouponTemplateList(Collection<Long> ids) {
|
||||
return couponTemplateMapper.selectBatchIds(ids);
|
||||
return couponTemplateMapper.selectByIds(ids);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ public class DiyPageServiceImpl implements DiyPageService {
|
||||
if (CollUtil.isEmpty(ids)) {
|
||||
return ListUtil.empty();
|
||||
}
|
||||
return diyPageMapper.selectBatchIds(ids);
|
||||
return diyPageMapper.selectByIds(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -132,7 +132,7 @@ public class SeckillConfigServiceImpl implements SeckillConfigService {
|
||||
return;
|
||||
}
|
||||
// 1. 如果有数量不匹配,说明有不存在的,则抛出 SECKILL_CONFIG_NOT_EXISTS 业务异常
|
||||
List<SeckillConfigDO> configs = seckillConfigMapper.selectBatchIds(ids);
|
||||
List<SeckillConfigDO> configs = seckillConfigMapper.selectByIds(ids);
|
||||
if (configs.size() != ids.size()) {
|
||||
throw exception(SECKILL_CONFIG_NOT_EXISTS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user