Browse Source

修改事件确认中的激光疲劳唤醒操作代码

develop
Mr.Wang 9 months ago
parent
commit
e5a0a8531a
  1. 5
      zc-business/src/main/java/com/zc/business/constant/DeviceFunctionIdConstants.java
  2. 5
      zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java

5
zc-business/src/main/java/com/zc/business/constant/DeviceFunctionIdConstants.java

@ -28,4 +28,9 @@ public class DeviceFunctionIdConstants {
* 可变信息标志 1B 功能码 * 可变信息标志 1B 功能码
*/ */
public static final String VARIABLE_INFORMATION_FLAG_1B = "1B"; public static final String VARIABLE_INFORMATION_FLAG_1B = "1B";
/**
* 激光疲劳唤醒 SETTM 功能码
*/
public static final String VARIABLE_INFORMATION_FLAG_SETTM = "SETTM";
} }

5
zc-business/src/main/java/com/zc/business/service/impl/DcEmergencyPlansServiceImpl.java

@ -714,7 +714,10 @@ public class DcEmergencyPlansServiceImpl implements DcEmergencyPlansService {
resultArray.add(result); resultArray.add(result);
// 操作时长 // 操作时长
String operationDuration = "SETTM" + otherConfig.get("operationDuration").toString(); String operationDuration = "SETTM" + otherConfig.get("operationDuration").toString();
AjaxResult ajaxResult = dcDeviceController.invokedFunction(iotDeviceId, operationDuration, new HashMap<>()); HashMap<String, Object> propsTime = new HashMap<>();
propsTime.put("SET",operationDuration);
functionId = DeviceFunctionIdConstants.VARIABLE_INFORMATION_FLAG_SETTM;
AjaxResult ajaxResult = dcDeviceController.invokedFunction(iotDeviceId, functionId, propsTime);
JSONObject resultTime = new JSONObject(); JSONObject resultTime = new JSONObject();
resultTime.put("device", device.getId()); resultTime.put("device", device.getId());
resultTime.put("result", ajaxResult); resultTime.put("result", ajaxResult);

Loading…
Cancel
Save