|
|
@ -612,6 +612,7 @@ public class DcWarningServiceImpl implements IDcWarningService |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public AjaxResult commandAndDispatch(DcWarning dcWarning) { |
|
|
|
Map<String, Object> mapAll = new HashMap<>(); |
|
|
|
HashMap<String, Object> dcDispatch = dcWarningMapper.selectDcDispatch(dcWarning.getId());//查询是否存在调度记录
|
|
|
@ -671,6 +672,7 @@ public class DcWarningServiceImpl implements IDcWarningService |
|
|
|
} |
|
|
|
//指挥调度,当调度信息为空的时候调用智能分配资源
|
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = Exception.class) |
|
|
|
public AjaxResult intelligentSource(DcWarning dcWarning) { |
|
|
|
String stakeMark = dcWarning.getStakeMark(); |
|
|
|
ArrayList<HashMap<String,Object>> hashMaps = new ArrayList<>(); |
|
|
@ -747,7 +749,7 @@ public class DcWarningServiceImpl implements IDcWarningService |
|
|
|
employees = Long.parseLong(map.get("employeesId").toString());//人员
|
|
|
|
} |
|
|
|
Long vehicles=null; |
|
|
|
if (map.get("vehiclesId").toString()!=null){ |
|
|
|
if (map.get("vehiclesId")!=null){ |
|
|
|
vehicles = Long.parseLong(map.get("vehiclesId").toString());//车辆
|
|
|
|
} |
|
|
|
DcDispatch dcDispatch = new DcDispatch(); |
|
|
|