From e1561d49674a826603777dc754ae259a4401b263 Mon Sep 17 00:00:00 2001 From: wangsixiang <2970484253@qq.com> Date: Tue, 1 Apr 2025 18:38:15 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=8C=E8=BD=A6=E8=AF=B1=E5=AF=BC=E8=A7=A3?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/DcEventServiceImpl.java | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) 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); + } + } } } }