Commit 94e3516e by 吕明尚

保洁管理增加判断

parent 18424b91
...@@ -311,9 +311,12 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme ...@@ -311,9 +311,12 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme
item.setRoolList(roomMap.get(item.getId())); item.setRoolList(roomMap.get(item.getId()));
item.getRoolList().forEach(room -> { item.getRoolList().forEach(room -> {
if (CollectionUtils.isNotEmpty(sCleanRecordsList)) { if (CollectionUtils.isNotEmpty(sCleanRecordsList)) {
SCleanRecords records = recordsMap.get(room.getId()).get(0); if (CollectionUtils.isNotEmpty(recordsMap.get(room.getId()))) {
room.setRecordsStatus(records.getStatus()); SCleanRecords records = recordsMap.get(room.getId()).get(0);
room.setRecordsId(records.getId()); room.setRecordsStatus(records.getStatus());
room.setRecordsId(records.getId());
}
} }
}); });
}); });
......
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