Browse Source

行车诱导解除

develop
wangsixiang 3 days ago
parent
commit
e1561d4967
  1. 32
      zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java

32
zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java

@ -2051,7 +2051,37 @@ public class DcEventServiceImpl extends ServiceImpl<DcEventMapper, DcEvent> impl
}
} else if (deviceType == 12){
//行车诱导
for (String deviceId : deviceList) {
String controlModelName = recoverConfig.getString("controlModelName");//模式
if ("手动模式".equals(controlModelName)) {
HashMap<String, Object> params = new HashMap<>();
params.put("mode", "00");
params.put("onWorkStatus", recoverConfig.getString("state"));
params.put("inWorkStatus", recoverConfig.getString("state"));
String functionId = DeviceFunctionIdConstants.DRIVING_GUIDANCE;
deviceController.getAjaxResult(deviceId, functionId,params);
}else if ("万年历".equals(controlModelName)){
HashMap<String, Object> params = new HashMap<>();
params.put("onWorkStatus", recoverConfig.getString("state"));
params.put("inWorkStatus", recoverConfig.getString("state"));
deviceController.getAjaxResult(deviceId,"30",params);
HashMap<String, Object> params2 = new HashMap<>();
params2.put("mode", "02");
String functionId = DeviceFunctionIdConstants.DRIVING_GUIDANCE;
deviceController.getAjaxResult(deviceId, functionId,params2);
}else {
HashMap<String, Object> params = new HashMap<>();
params.put("onWorkStatus", recoverConfig.getString("state"));
params.put("inWorkStatus", recoverConfig.getString("state"));
deviceController.getAjaxResult(deviceId,"30",params);
HashMap<String, Object> params2 = new HashMap<>();
params2.put("mode","01");
params2.put("startDisplayTime",recoverConfig.getString("startTime"));
params2.put("endDisplayTime",recoverConfig.getString("endTime"));
String functionId = DeviceFunctionIdConstants.DRIVING_GUIDANCE;
deviceController.getAjaxResult(deviceId, functionId,params2);
}
}
}
}
}

Loading…
Cancel
Save