|
@@ -357,7 +357,8 @@ public class AppHomeServiceImpl implements IAppHomeService {
|
|
|
return appSearchHotMapper.selectList(Wrappers.<AppSearchHot>lambdaQuery()
|
|
|
// 新增条件:当前时间在 startTime 和 endTime 之间
|
|
|
.le(AppSearchHot::getStartTime, new Date()) // 开始时间 <= 当前时间
|
|
|
- .ge(AppSearchHot::getEndTime, new Date()) // 结束时间 >= 当前时间
|
|
|
+ .ge(AppSearchHot::getEndTime, new Date())
|
|
|
+ .eq(AppSearchHot::getIsActive,1) // 结束时间 >= 当前时间
|
|
|
.last("LIMIT 10")
|
|
|
.orderByDesc(AppSearchHot::getSearchCount));
|
|
|
}
|