diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java index 29a55557..721ec105 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java @@ -487,6 +487,7 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { // 2:执行13功能码 HashMap props11 = new HashMap<>(); functionId = DeviceFunctionIdConstants.VARIABLE_INFORMATION_FLAG_13; + List> list = new ArrayList<>(); Map parameters = new HashMap<>(); // stopTime parameters.put("STAY",otherConfig.get("STAY").toString()); @@ -507,8 +508,8 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { parameters.put("height",otherConfig.get("height").toString()); // formatStyle parameters.put("formatStyle",otherConfig.get("formatStyle").toString()); - - props11.put("parameters",parameters); + list.add(parameters); + props11.put("parameters",list); AjaxResult ajaxResult13 = dcDeviceController.invokedFunction(iotDeviceId, functionId, props11); JSONObject result = new JSONObject(); if (ajaxResult13.get("code").equals(200)) {