小程序秒杀活动接口过滤已过期的
This commit is contained in:
parent
2a93813e68
commit
ec7046aab0
@ -72,6 +72,7 @@ public interface SeckillActivityMapper extends BaseMapperX<SeckillActivityDO> {
|
|||||||
default PageResult<SeckillActivityDO> selectPage(AppSeckillActivityPageReqVO pageReqVO, Integer status) {
|
default PageResult<SeckillActivityDO> selectPage(AppSeckillActivityPageReqVO pageReqVO, Integer status) {
|
||||||
return selectPage(pageReqVO, new LambdaQueryWrapperX<SeckillActivityDO>()
|
return selectPage(pageReqVO, new LambdaQueryWrapperX<SeckillActivityDO>()
|
||||||
.eqIfPresent(SeckillActivityDO::getStatus, status)
|
.eqIfPresent(SeckillActivityDO::getStatus, status)
|
||||||
|
.ge(SeckillActivityDO::getEndTime, LocalDateTime.now())
|
||||||
// TODO 芋艿:对 find in set 的想法;
|
// TODO 芋艿:对 find in set 的想法;
|
||||||
.apply(ObjectUtil.isNotNull(pageReqVO.getConfigId()), "FIND_IN_SET(" + pageReqVO.getConfigId() + ",config_ids) > 0"));
|
.apply(ObjectUtil.isNotNull(pageReqVO.getConfigId()), "FIND_IN_SET(" + pageReqVO.getConfigId() + ",config_ids) > 0"));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user