Commit 94e3516e by 吕明尚

保洁管理增加判断

parent 18424b91
...@@ -311,10 +311,13 @@ public class SStoreServiceImpl extends ServiceImpl<SStoreMapper, SStore> impleme ...@@ -311,10 +311,13 @@ 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)) {
if (CollectionUtils.isNotEmpty(recordsMap.get(room.getId()))) {
SCleanRecords records = recordsMap.get(room.getId()).get(0); SCleanRecords records = recordsMap.get(room.getId()).get(0);
room.setRecordsStatus(records.getStatus()); room.setRecordsStatus(records.getStatus());
room.setRecordsId(records.getId()); 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