|
|
@@ -515,21 +515,24 @@ public class LabSubjectManagerService {
|
|
|
|
|
|
|
|
|
});
|
|
|
- // 实验室化学品临界量计算
|
|
|
- R r = remoteChemicalService.queryCriticaliBySubId(subIds);
|
|
|
- if(r.getCode() == HttpStatus.SUCCESS){
|
|
|
- List<Map<String, Object>> list = (List<Map<String, Object>>) r.getData();
|
|
|
- list.forEach(map -> {
|
|
|
- for (LabSubjectVO s : labSubjects) {
|
|
|
- if (Objects.equals(s.getId(), Long.parseLong(map.get("subId") + ""))) {
|
|
|
- s.setRiskIndicator(map.get("criticali") + "");
|
|
|
- break;
|
|
|
+ try {
|
|
|
+ // 实验室化学品临界量计算
|
|
|
+ R r = remoteChemicalService.queryCriticaliBySubId(subIds);
|
|
|
+ if(r.getCode() == HttpStatus.SUCCESS){
|
|
|
+ List<Map<String, Object>> list = (List<Map<String, Object>>) r.getData();
|
|
|
+ list.forEach(map -> {
|
|
|
+ for (LabSubjectVO s : labSubjects) {
|
|
|
+ if (Objects.equals(s.getId(), Long.parseLong(map.get("subId") + ""))) {
|
|
|
+ s.setRiskIndicator(map.get("criticali") + "");
|
|
|
+ break;
|
|
|
+ }
|
|
|
}
|
|
|
- }
|
|
|
- });
|
|
|
+ });
|
|
|
|
|
|
- }
|
|
|
+ }
|
|
|
+ }catch (Exception e){
|
|
|
|
|
|
+ }
|
|
|
|
|
|
// 2.5 页面改变,接口加分页,并拆成两部分
|
|
|
return labSubjects;
|
|
|
@@ -908,7 +911,7 @@ public class LabSubjectManagerService {
|
|
|
return sensorFunctionStatus;
|
|
|
}
|
|
|
|
|
|
- }).collect(Collectors.toList());
|
|
|
+ }).distinct().collect(Collectors.toList());
|
|
|
}).filter(a -> CollUtil.isNotEmpty(a)).flatMap(List::stream)
|
|
|
.sorted((c, d) -> NumberUtil.compare(c.getOrder(), d.getOrder()))
|
|
|
.collect(Collectors.toList());
|