Commit c6c33481 by 吕明尚

查询保洁记录增加房间id判断

parent 41d6f23d
...@@ -407,6 +407,9 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC ...@@ -407,6 +407,9 @@ public class SCleanRecordsServiceImpl extends ServiceImpl<SCleanRecordsMapper,SC
@Override @Override
public List<SCleanRecords> unCleanedListByRoomIds(List<Long> roomIds) { public List<SCleanRecords> unCleanedListByRoomIds(List<Long> roomIds) {
LambdaQueryWrapper<SCleanRecords> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<SCleanRecords> queryWrapper = new LambdaQueryWrapper<>();
if (CollectionUtils.isEmpty(roomIds)) {
return new ArrayList<>();
}
queryWrapper.in(SCleanRecords::getRoomId, roomIds); queryWrapper.in(SCleanRecords::getRoomId, roomIds);
queryWrapper.ne(SCleanRecords::getStatus, CleaningStatusEnum.CLEANED.getCode()); queryWrapper.ne(SCleanRecords::getStatus, CleaningStatusEnum.CLEANED.getCode());
queryWrapper.orderByDesc(SCleanRecords::getStartDate); queryWrapper.orderByDesc(SCleanRecords::getStartDate);
......
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