From d022c41f84d7e09d0f10251edd48f35933899762 Mon Sep 17 00:00:00 2001
From: ‘liusuyi’ <1951119284@qq.com>
Date: 星期六, 23 十二月 2023 15:57:03 +0800
Subject: [PATCH] 增加接口权限不检验接口
---
ard-work/src/main/java/com/ruoyi/inspect/controller/TaskController.java | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/inspect/controller/TaskController.java b/ard-work/src/main/java/com/ruoyi/inspect/controller/TaskController.java
index c3ab320..955d788 100644
--- a/ard-work/src/main/java/com/ruoyi/inspect/controller/TaskController.java
+++ b/ard-work/src/main/java/com/ruoyi/inspect/controller/TaskController.java
@@ -47,6 +47,24 @@
}
+
+ @GetMapping("/startTask/{taskId}/noPerm")
+ @ApiOperation("鎵嬪姩寮�鍚贰妫�-涓嶆牎楠屾潈闄�")
+ AjaxResult startTaskNoPerm(@PathVariable String taskId) {
+ boolean enablemanualTask = ardVideoInspectTaskService.isEnablemanualTask(taskId);
+ if (enablemanualTask)
+ {
+ // 寮�鍚贰妫�浠诲姟
+ inspectionTaskManager.startInspectionTask(taskId);
+ return AjaxResult.success();
+ }
+ else
+ {
+ return AjaxResult.error();
+ }
+
+ }
+
@PreAuthorize("@ss.hasPermi('inspect:control:manual')")
@ApiOperation("鎵嬪姩鍋滄宸℃")
@GetMapping("/stopTask/{taskId}")
@@ -55,6 +73,15 @@
inspectionTaskManager.stopInspectionTask(taskId);
return AjaxResult.success();
}
+
+ @ApiOperation("鎵嬪姩鍋滄宸℃-涓嶆牎楠屾潈闄�")
+ @GetMapping("/stopTask/{taskId}/noPerm")
+ AjaxResult stopTaskNoPerm(@PathVariable String taskId) {
+ // 鍋滄宸℃浠诲姟
+ inspectionTaskManager.stopInspectionTask(taskId);
+ return AjaxResult.success();
+ }
+
@PreAuthorize("@ss.hasPermi('inspect:control:manual')")
@ApiOperation("鏌ヨ宸插惎鍔ㄤ换鍔�")
@GetMapping("/getTaskList")
@@ -63,4 +90,12 @@
Set<String> taskIds = inspectionTaskManager.getTaskMap().keySet();
return AjaxResult.success(taskIds);
}
+
+ @ApiOperation("鏌ヨ宸插惎鍔ㄤ换鍔�-涓嶆牎楠屾潈闄�")
+ @GetMapping("/getTaskList/noPerm")
+ AjaxResult getTaskListNoPerm() {
+ // 鍋滄宸℃浠诲姟
+ Set<String> taskIds = inspectionTaskManager.getTaskMap().keySet();
+ return AjaxResult.success(taskIds);
+ }
}
--
Gitblit v1.9.3