From b1f91d23c01266dda8cad34aa866bcac741a21cf Mon Sep 17 00:00:00 2001
From: aijinhui <aijinhui>
Date: 星期六, 23 十二月 2023 17:03:51 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
ard-work/src/main/java/com/ruoyi/inspect/controller/ArdVideoInspectTaskController.java | 8 +++++++-
ard-work/src/main/java/com/ruoyi/inspect/controller/TaskController.java | 35 +++++++++++++++++++++++++++++++++++
2 files changed, 42 insertions(+), 1 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/inspect/controller/ArdVideoInspectTaskController.java b/ard-work/src/main/java/com/ruoyi/inspect/controller/ArdVideoInspectTaskController.java
index 1d15f15..12080fc 100644
--- a/ard-work/src/main/java/com/ruoyi/inspect/controller/ArdVideoInspectTaskController.java
+++ b/ard-work/src/main/java/com/ruoyi/inspect/controller/ArdVideoInspectTaskController.java
@@ -75,7 +75,13 @@
public AjaxResult getInfo(@PathVariable("id") String id) {
return success(ardVideoInspectTaskService.selectArdVideoInspectTaskById(id));
}
-
+ /**
+ * 鑾峰彇瑙嗛宸℃浠诲姟璇︾粏淇℃伅锛堜笉鏍¢獙鏉冮檺锛�
+ */
+ @GetMapping(value = "/{id}/noPerm")
+ public AjaxResult getInfoNoPerm(@PathVariable("id") String id) {
+ return success(ardVideoInspectTaskService.selectArdVideoInspectTaskById(id));
+ }
/*
*/
/**
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