秒杀和拼团列表过滤已过期活动 #39
@ -36,12 +36,14 @@ public interface CombinationActivityMapper extends BaseMapperX<CombinationActivi
|
||||
|
||||
default PageResult<CombinationActivityDO> selectPage(PageParam pageParam, Integer status) {
|
||||
return selectPage(pageParam, new LambdaQueryWrapperX<CombinationActivityDO>()
|
||||
.eq(CombinationActivityDO::getStatus, status));
|
||||
.eq(CombinationActivityDO::getStatus, status)
|
||||
.ge(CombinationActivityDO::getEndTime, LocalDateTime.now()));
|
||||
}
|
||||
|
||||
default List<CombinationActivityDO> selectListByStatus(Integer status, Integer count) {
|
||||
return selectList(new LambdaQueryWrapperX<CombinationActivityDO>()
|
||||
.eq(CombinationActivityDO::getStatus, status)
|
||||
.ge(CombinationActivityDO::getEndTime, LocalDateTime.now())
|
||||
.last("LIMIT " + count));
|
||||
}
|
||||
|
||||
|
@ -101,7 +101,7 @@ public interface CombinationActivityService {
|
||||
List<CombinationActivityDO> getCombinationActivityListByIds(Collection<Long> ids);
|
||||
|
||||
/**
|
||||
* 获取正在进行的活动分页数据
|
||||
* 获取正在进行的活动分页数据(同时活动未过期)
|
||||
*
|
||||
* @param count 需要的数量
|
||||
* @return 拼团活动分页
|
||||
@ -109,7 +109,7 @@ public interface CombinationActivityService {
|
||||
List<CombinationActivityDO> getCombinationActivityListByCount(Integer count);
|
||||
|
||||
/**
|
||||
* 获取正在进行的活动分页数据
|
||||
* 获取正在进行的活动分页数据(同时活动未过期)
|
||||
*
|
||||
* @param pageParam 分页请求
|
||||
* @return 拼团活动分页
|
||||
|
Loading…
Reference in New Issue
Block a user