Преглед на файлове

添加deviceCode、deviceProtocolType、deviceLoginType字段

bihs преди 2 седмици
родител
ревизия
cb2fa6f351
променени са 1 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 6 6
      src/main/java/com/sooka/sponest/monitor/dahua/controller/EquipmentStatusTaskController.java

+ 6 - 6
src/main/java/com/sooka/sponest/monitor/dahua/controller/EquipmentStatusTaskController.java

@@ -162,12 +162,12 @@ public class EquipmentStatusTaskController {
                 }
             } else {
                 //向执法中心推送设备状态
-//                R result = remoteLawenforcementBaseService.deviceOpenOrClose(arr);
-//                if (result.getCode() != 200) {
-//                    log.info("向执法中心推送设备状态失败:{}", result.getMsg());
-//                }
-//                //更新执法仪在离线状态
-//                centermonitorTCameraMapper.updateBatchLawEnforcementInstrumentState(arr);
+                R result = remoteLawenforcementBaseService.deviceOpenOrClose(arr);
+                if (result.getCode() != 200) {
+                    log.info("向执法中心推送设备状态失败:{}", result.getMsg());
+                }
+                //更新执法仪在离线状态
+                centermonitorTCameraMapper.updateBatchLawEnforcementInstrumentState(arr);
                 //误操作开机,导致设备状态非正常使用,进行告警处理
                 saveOrUpdateRecorderStatus(arr);
             }