|
@@ -274,9 +274,7 @@ public class EventProcessServiceImpl extends BaseServiceImpl implements EventPro
|
|
|
|
|
|
|
|
|
List<CenterdataTAidevicedept> listDept = new ArrayList<>();
|
|
|
- deptList.forEach(dept -> {
|
|
|
- listDept.add(new CenterdataTAidevicedept(dept.getDeptId(), dept.getDeptName()));
|
|
|
- });
|
|
|
+ deptList.forEach(dept -> listDept.add(new CenterdataTAidevicedept(dept.getDeptId(), dept.getDeptName())));
|
|
|
// 插入事件指挥中心
|
|
|
eventDeptService.insertEventDept(sensorEventVo.getEventId(), listDept);
|
|
|
|
|
@@ -681,9 +679,7 @@ public class EventProcessServiceImpl extends BaseServiceImpl implements EventPro
|
|
|
eventLogService.insertEventLog(eventInfo.getEventId(), sysUser.getDeptNames() + sysUser.getNickName() + EventEnum.COOPERATE_DEPT.getDescribe(), EVENT_LOG_TYPE_100, EVENT_LOG_SOURCE_99, String.valueOf(sysUser.getUserId()), DateUtils.getNowDate());
|
|
|
|
|
|
List<CenterdataTAidevicedept> listDept = new ArrayList<>();
|
|
|
- eventInfo.getDeptIdList().forEach(deptId -> {
|
|
|
- listDept.add(new CenterdataTAidevicedept(deptId, ""));
|
|
|
- });
|
|
|
+ eventInfo.getDeptIdList().forEach(deptId -> listDept.add(new CenterdataTAidevicedept(deptId, "")));
|
|
|
eventDeptService.insertEventDept(eventInfo.getEventId(), listDept);
|
|
|
}
|
|
|
return AjaxResult.success();
|
|
@@ -740,9 +736,7 @@ public class EventProcessServiceImpl extends BaseServiceImpl implements EventPro
|
|
|
|
|
|
List<CenterdataTAidevicedept> listDept = new ArrayList<>();
|
|
|
if(!eventInfo.getDeptIdList().isEmpty()){
|
|
|
- eventInfo.getDeptIdList().forEach(deptId->{
|
|
|
- listDept.add(new CenterdataTAidevicedept(deptId, ""));
|
|
|
- });
|
|
|
+ eventInfo.getDeptIdList().forEach(deptId-> listDept.add(new CenterdataTAidevicedept(deptId, "")));
|
|
|
//插入行管局部门
|
|
|
eventDeptService.insertEventDept(eventInfo.getEventId(), listDept);
|
|
|
}else{
|
|
@@ -776,9 +770,7 @@ public class EventProcessServiceImpl extends BaseServiceImpl implements EventPro
|
|
|
*
|
|
|
*/
|
|
|
private void listSetPath(List<EventInfoBO> eventInfoBOList) {
|
|
|
- eventInfoBOList.forEach(eventInfo -> {
|
|
|
- eventInfo.setAttachList(AttachUtils.setPath(eventInfo.getAttachList(), eventInfo.getEventId(), eventAttachService));
|
|
|
- });
|
|
|
+ eventInfoBOList.forEach(eventInfo -> eventInfo.setAttachList(AttachUtils.setPath(eventInfo.getAttachList(), eventInfo.getEventId(), eventAttachService)));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -787,9 +779,7 @@ public class EventProcessServiceImpl extends BaseServiceImpl implements EventPro
|
|
|
*
|
|
|
*/
|
|
|
private void detailSetPath(List<EventLog> eventLogList) {
|
|
|
- eventLogList.forEach(log -> {
|
|
|
- log.setAttachList(AttachUtils.setPath(log.getAttachList(), log.getId(), eventAttachService));
|
|
|
- });
|
|
|
+ eventLogList.forEach(log -> log.setAttachList(AttachUtils.setPath(log.getAttachList(), log.getId(), eventAttachService)));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -814,9 +804,7 @@ public class EventProcessServiceImpl extends BaseServiceImpl implements EventPro
|
|
|
|
|
|
private void listSetEventStatusLabel(List<EventInfoBO> eventInfoBOS) {
|
|
|
Map<String, String> eventStatusMap = getEventStatusMap();
|
|
|
- eventInfoBOS.forEach(eventInfoBO -> {
|
|
|
- eventInfoBO.setEventStatus(MapUtils.getString(eventStatusMap, eventInfoBO.getEventStatus()));
|
|
|
- });
|
|
|
+ eventInfoBOS.forEach(eventInfoBO -> eventInfoBO.setEventStatus(MapUtils.getString(eventStatusMap, eventInfoBO.getEventStatus())));
|
|
|
}
|
|
|
|
|
|
private void detailSetStatus(EventInfo eventInfo) {
|