Commit ba42ee05 by 吕明尚

首页房间状态显示更改查询条件

parent 6f2bcf56
......@@ -440,7 +440,7 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
public Map<Long, SCleanRecords> lastCleanRoomByRoomIds(List<Long> roomIds) {
LambdaQueryWrapper<SCleanRecords> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.in(SCleanRecords::getRoomId, roomIds);
queryWrapper.gt(SCleanRecords::getCreateTime,DateUtils.addDays(new Date(),-1));
queryWrapper.gt(SCleanRecords::getCreateTime, DateUtils.addDays(new Date(), -7));
List<SCleanRecords> records = list(queryWrapper);
if(CollectionUtils.isNotEmpty(records)){
Map<Long, SCleanRecords> cleanMap = records.parallelStream().collect(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment