From 5d2e6ca50091f405dfda9e287b367dd295dc6cf8 Mon Sep 17 00:00:00 2001
From: Xiajijian <1176061145@qq.com>
Date: Mon, 09 Feb 2026 17:39:17 +0800
Subject: [PATCH] 1. 航线任务增加校验,只有下发人和登陆人是一个人才可以删除修改操作。 2. 增加校验航线任务是否可以创建航线接口。

---
 ard-admin/src/main/java/com/ard/web/controller/sample/DeviceController.java |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/ard-admin/src/main/java/com/ard/web/controller/sample/DeviceController.java b/ard-admin/src/main/java/com/ard/web/controller/sample/DeviceController.java
index 291caac..6874387 100644
--- a/ard-admin/src/main/java/com/ard/web/controller/sample/DeviceController.java
+++ b/ard-admin/src/main/java/com/ard/web/controller/sample/DeviceController.java
@@ -218,15 +218,17 @@
     public ResponseResult devicePropertySet(@PathVariable("device_sn") String dockSn,
                                             @RequestBody JsonNode param) {
         if (param.size() != 1) {
-            return ResponseResult.error(CommonErrorEnum.ILLEGAL_ARGUMENT);
+            //return ResponseResult.error(CommonErrorEnum.ILLEGAL_ARGUMENT);
+            return ResponseResult.error(999,"参数不合法");
         }
         String property = param.fieldNames().next();
         Optional<DeviceSetPropertyEnum> propertyEnumOpt = DeviceSetPropertyEnum.find(property);
         if (propertyEnumOpt.isEmpty()) {
-            return ResponseResult.error(CommonErrorEnum.ILLEGAL_ARGUMENT);
+            //return ResponseResult.error(CommonErrorEnum.ILLEGAL_ARGUMENT);
+            return ResponseResult.error(999,"参数无效");
         }
-        deviceService.devicePropertySet(dockSn, propertyEnumOpt.get(), param);
-        return ResponseResult.success();
+        return deviceService.devicePropertySet(dockSn, propertyEnumOpt.get(), param);
+//        return ResponseResult.success();
     }
 
     //.get(property)
@@ -265,6 +267,7 @@
                 .workType(dto.getWorkType())
                 .webrtcUrl(dto.getWebrtcUrl())
                 .cameraWebrtcUrl(dto.getCameraWebrtcUrl())
+                .cameraState(dto.getCameraState())
                 .compatibleStatus(dto.getFirmwareStatus() == null ? null :
                         DeviceFirmwareStatusEnum.CONSISTENT_UPGRADE != DeviceFirmwareStatusEnum.find(dto.getFirmwareStatus()))
                 .build();

--
Gitblit v1.9.3