|
|
@ -780,6 +780,7 @@ public class DcWarningServiceImpl implements IDcWarningService |
|
|
|
return AjaxResult.error(); |
|
|
|
} |
|
|
|
Long dispatchId = dcDispatch.getId();//信息记录id
|
|
|
|
String context = ""; |
|
|
|
if (employees!=null) { |
|
|
|
dcDispatchResource.setResourceId(employees);//资源id
|
|
|
|
dcDispatchResource.setDispatchType(UniversalEnum.ONE.getNumber());//资源类型
|
|
|
@ -788,6 +789,8 @@ public class DcWarningServiceImpl implements IDcWarningService |
|
|
|
if (employeesSource==UniversalEnum.ZERO.getNumber()){ |
|
|
|
return AjaxResult.error(UniversalEnum.PERSONNEL_SCHEDULING_EXCEPTION.getValue()); |
|
|
|
} |
|
|
|
String employeesName = dcWarningMapper.employeesName(employees); |
|
|
|
context = "路管人员" + employeesName + "参与事件救援,"; |
|
|
|
} |
|
|
|
if (vehicles!=null) { |
|
|
|
// 生成一个随机索引,范围在0到列表长度减1之间
|
|
|
@ -798,7 +801,19 @@ public class DcWarningServiceImpl implements IDcWarningService |
|
|
|
if (dispatchResource==UniversalEnum.ZERO.getNumber()){ |
|
|
|
return AjaxResult.error(UniversalEnum.VEHICLE_SCHEDULING_EXCEPTION.getValue()); |
|
|
|
} |
|
|
|
String vehiclePlate = dcWarningMapper.vehiclesName(vehicles); |
|
|
|
context += "救援车辆" + vehiclePlate + "参与事件救援,"; |
|
|
|
} |
|
|
|
|
|
|
|
if (StringUtils.isNotBlank(context)){ |
|
|
|
context = context.substring(0,context.length() -1); |
|
|
|
DcEventProcess dcEventProcess = new DcEventProcess(); |
|
|
|
dcEventProcess.setEventId(eventId); |
|
|
|
dcEventProcess.setSource(UniversalEnum.ONE.getNumber()); |
|
|
|
dcEventProcess.setContext(context); |
|
|
|
dcEventProcessService.insertDcEventProcess(dcEventProcess); |
|
|
|
} |
|
|
|
|
|
|
|
return AjaxResult.success(); |
|
|
|
} |
|
|
|
|
|
|
|