|
@ -907,11 +907,11 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { |
|
|
termList.add(JSON.parseObject(device.getOtherConfig())); |
|
|
termList.add(JSON.parseObject(device.getOtherConfig())); |
|
|
params.put("termList", termList); |
|
|
params.put("termList", termList); |
|
|
|
|
|
|
|
|
JSONObject returnResult = broadcastController.nearCamListDistance(params); |
|
|
|
|
|
JSONObject result = new JSONObject(); |
|
|
JSONObject result = new JSONObject(); |
|
|
result.put("device", device.getId()); |
|
|
result.put("device", device.getId()); |
|
|
result.put("deviceName",device.getDeviceName()); |
|
|
result.put("deviceName",device.getDeviceName()); |
|
|
result.put("content",params.get("text")); |
|
|
result.put("content",params.get("text")); |
|
|
|
|
|
JSONObject returnResult = broadcastController.nearCamListDistance(params); |
|
|
result.put("result", returnResult); |
|
|
result.put("result", returnResult); |
|
|
resultArray.add(result); |
|
|
resultArray.add(result); |
|
|
|
|
|
|
|
@ -1010,25 +1010,21 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService { |
|
|
props11.put("parameters", list); |
|
|
props11.put("parameters", list); |
|
|
AjaxResult ajaxResult13 = dcDeviceController.invokedFunction(iotDeviceId, functionId, props11); |
|
|
AjaxResult ajaxResult13 = dcDeviceController.invokedFunction(iotDeviceId, functionId, props11); |
|
|
JSONObject result = new JSONObject(); |
|
|
JSONObject result = new JSONObject(); |
|
|
|
|
|
result.put("device", device.getId()); |
|
|
|
|
|
result.put("deviceName",device.getDeviceName()); |
|
|
if (ajaxResult13.get("code").equals(200)) { |
|
|
if (ajaxResult13.get("code").equals(200)) { |
|
|
HashMap<String, Object> props1B = new HashMap<>(); |
|
|
HashMap<String, Object> props1B = new HashMap<>(); |
|
|
// 3: 执行1B功能码
|
|
|
// 3: 执行1B功能码
|
|
|
functionId = DeviceFunctionIdConstants.VARIABLE_INFORMATION_FLAG_1B; |
|
|
functionId = DeviceFunctionIdConstants.VARIABLE_INFORMATION_FLAG_1B; |
|
|
props1B.put("fileId", "11"); |
|
|
props1B.put("fileId", "11"); |
|
|
AjaxResult ajaxResult1B = dcDeviceController.invokedFunction(iotDeviceId, functionId, props1B); |
|
|
AjaxResult ajaxResult1B = dcDeviceController.invokedFunction(iotDeviceId, functionId, props1B); |
|
|
result.put("device", device.getId()); |
|
|
|
|
|
result.put("deviceName",device.getDeviceName()); |
|
|
|
|
|
result.put("content",dcInfoBoardTemplate.getContent()); |
|
|
result.put("content",dcInfoBoardTemplate.getContent()); |
|
|
result.put("result", ajaxResult1B); |
|
|
result.put("result", ajaxResult1B); |
|
|
resultArray.add(result); |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
result.put("device", device.getId()); |
|
|
|
|
|
result.put("deviceName",device.getDeviceName()); |
|
|
|
|
|
result.put("content","发布失败"); |
|
|
result.put("content","发布失败"); |
|
|
result.put("result", ajaxResult13); |
|
|
result.put("result", ajaxResult13); |
|
|
resultArray.add(result); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
resultArray.add(result); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|