From d21c693fd8afabbe04d53919b89b355bd2d5301c Mon Sep 17 00:00:00 2001
From: ‘liusuyi’ <1951119284@qq.com>
Date: 星期二, 08 八月 2023 17:07:24 +0800
Subject: [PATCH] 优化代码生成自动插入UUID为主键 修改兴趣点井主键代码生成uuid取消数据库自动生成uuid

---
 ard-work/src/main/java/com/ruoyi/device/hiksdk/controller/SdkController.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/ard-work/src/main/java/com/ruoyi/device/hiksdk/controller/SdkController.java b/ard-work/src/main/java/com/ruoyi/device/hiksdk/controller/SdkController.java
index aedce0f..8bd7d2f 100644
--- a/ard-work/src/main/java/com/ruoyi/device/hiksdk/controller/SdkController.java
+++ b/ard-work/src/main/java/com/ruoyi/device/hiksdk/controller/SdkController.java
@@ -161,6 +161,7 @@
     @ApiOperationSupport(includeParameters = {"cmd.cameraId", "cmd.channelNum", "cmd.ptzMap"})
     public @ResponseBody
     AjaxResult SetPTZ(@RequestBody CameraCmd cmd) {
+        cmd.setOperator(SecurityUtils.getUserId());
         return toAjax(sdk.setPtz(cmd));
     }
 
@@ -190,8 +191,9 @@
     public @ResponseBody
     AjaxResult setPTZLock(@RequestBody CameraCmd cmd) {
         cmd.setOperator(SecurityUtils.getUserId());
-        return toAjax(sdk.controlLock(cmd));
+        return AjaxResult.success(sdk.controlLock(cmd));
     }
+
     @ApiOperation("璁剧疆瑙i攣")
     @PostMapping("/setPTZUnLock")
     @ApiOperationSupport(includeParameters = {"cmd.cameraId"})
@@ -201,6 +203,7 @@
         cmd.setOperator(SecurityUtils.getUserId());
         return AjaxResult.success(sdk.controlUnLock(cmd));
     }
+
     @ApiOperation("鑾峰彇浜戝彴閿佸畾淇℃伅")
     @PostMapping("/getPTZLockInfo")
     @ApiOperationSupport(includeParameters = {"cmd.cameraId", "cmd.channelNum"})

--
Gitblit v1.9.3