Browse Source

事件处置联络调度记录

develop
lau572 11 months ago
parent
commit
a449e77146
  1. 8
      zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java

8
zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java

@ -719,8 +719,9 @@ public class DcWarningServiceImpl implements IDcWarningService
dcWarningMapper.deleteDispatchResource(dispatchId);//删除全部属于该调度记录下的全部资源
ArrayList<Map<String,Object>> employeesArray = (ArrayList<Map<String,Object>>) map.get("employees");//取出人员
String context = "路管人员";
String context = "";
if (employeesArray!=null&&employeesArray.size()>0) {
context += "路管人员";
for (Map<String,Object> array : employeesArray) {
dcDispatchResource.setDispatchType(1);//类型
dcDispatchResource.setResourceId(Long.valueOf(array.get("id").toString()));//资源id
@ -736,7 +737,10 @@ public class DcWarningServiceImpl implements IDcWarningService
}
ArrayList<Map<String,Object>> vehicleArray = (ArrayList<Map<String,Object>>) map.get("vehicle");////取出车辆
if (vehicleArray!=null&&vehicleArray.size()>0) {
context += ",救援车辆";
if (context.length() > 0){
context += ",";
}
context += "救援车辆";
for (Map<String,Object> array : vehicleArray) {
dcDispatchResource.setDispatchType(2);
dcDispatchResource.setResourceId(Long.valueOf(array.get("id").toString()));

Loading…
Cancel
Save