Browse Source

Merge branch 'develop' of gitadmin/tuoheng_freeway into release

tags/v1.2.0^2
chengwang 1 year ago
parent
commit
97efe7b2f8
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/AccidentNoticeService.java

+ 5
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/accident/AccidentNoticeService.java View File

@@ -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);

Loading…
Cancel
Save