@@ -82,6 +82,11 @@ public class AccidentNoticeService { | |||
} | |||
} | |||
List<String> accidentIdList = oldList.stream().map(o -> o.getId()).collect(Collectors.toList()); | |||
if(CollectionUtils.isEmpty(accidentIdList) || accidentIdList.size() == 0){ | |||
//查询当前用户租户对应的预警数据 | |||
return JsonResult.success(accidentList); | |||
} | |||
newList = accidentMapper.selectList(Wrappers.<Accident>lambdaQuery() | |||
.in(Accident::getId, accidentIdList)); | |||
accidentList.removeAll(newList); |