Commit 9ace0120 authored by KeYong's avatar KeYong

优化报表模板

parent 7a5fc60c
...@@ -1738,7 +1738,13 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste ...@@ -1738,7 +1738,13 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
} }
attachAlarmList = dtos; attachAlarmList = dtos;
} }
map.put("attachAlarmList", attachAlarmList); List<ReportAlarmDto> newAttachAlarmList = new ArrayList<>();
for (ReportAlarmDto dto : attachAlarmList) {
if(!newAttachAlarmList.contains(dto)){
newAttachAlarmList.add(dto);
}
}
map.put("attachAlarmList", newAttachAlarmList);
}else { }else {
return null; return null;
} }
...@@ -1967,12 +1973,16 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste ...@@ -1967,12 +1973,16 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
} }
attachAlarmList = dtos; attachAlarmList = dtos;
} }
map.put("attachAlarmList", attachAlarmList); List<ReportAlarmDto> newAttachAlarmList = new ArrayList<>();
for (ReportAlarmDto dto : attachAlarmList) {
if(!newAttachAlarmList.contains(dto)){
newAttachAlarmList.add(dto);
}
}
map.put("attachAlarmList", newAttachAlarmList);
}else { }else {
return null; return null;
} }
return map; return map;
} }
...@@ -2189,7 +2199,13 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste ...@@ -2189,7 +2199,13 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
} }
attachAlarmList = dtos; attachAlarmList = dtos;
} }
map.put("attachAlarmList", attachAlarmList); List<ReportAlarmDto> newAttachAlarmList = new ArrayList<>();
for (ReportAlarmDto dto : attachAlarmList) {
if(!newAttachAlarmList.contains(dto)){
newAttachAlarmList.add(dto);
}
}
map.put("attachAlarmList", newAttachAlarmList);
}else { }else {
return null ; return null ;
} }
......
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