diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java index 7f81b72f..19db731e 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcEventServiceImpl.java @@ -2051,7 +2051,37 @@ public class DcEventServiceImpl extends ServiceImpl impl } } else if (deviceType == 12){ //行车诱导 - + for (String deviceId : deviceList) { + String controlModelName = recoverConfig.getString("controlModelName");//模式 + if ("手动模式".equals(controlModelName)) { + HashMap 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 params = new HashMap<>(); + params.put("onWorkStatus", recoverConfig.getString("state")); + params.put("inWorkStatus", recoverConfig.getString("state")); + deviceController.getAjaxResult(deviceId,"30",params); + HashMap params2 = new HashMap<>(); + params2.put("mode", "02"); + String functionId = DeviceFunctionIdConstants.DRIVING_GUIDANCE; + deviceController.getAjaxResult(deviceId, functionId,params2); + }else { + HashMap params = new HashMap<>(); + params.put("onWorkStatus", recoverConfig.getString("state")); + params.put("inWorkStatus", recoverConfig.getString("state")); + deviceController.getAjaxResult(deviceId,"30",params); + HashMap 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); + } + } } } }