From 616762daea1e46ace3a8ff2ee8e3975e5bcccd24 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期三, 18 九月 2024 20:14:22 +0800 Subject: [PATCH] 工单取图片定时任务不用线程池 --- ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java b/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java index 3ac12c1..b79c732 100644 --- a/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java +++ b/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java @@ -32,7 +32,7 @@ /** * 鏌ヨ璁惧璧勪骇鍒楄〃 */ - @PreAuthorize("@ss.hasPermi('system:monitor:list')") + @PreAuthorize("@ss.hasPermi('system:monitor:list')") @GetMapping("/list") public TableDataInfo list(TMonitorVO tMonitor) { @@ -101,12 +101,10 @@ * 鑾峰彇瑙嗛璁惧缁熻鏁� */ @PreAuthorize("@ss.hasPermi('system:monitor:list')") - @GetMapping("/getVideoCount/{cameraFunType}") - public AjaxResult getVideoCount(@PathVariable String cameraFunType) + @GetMapping("/getVideoCount") + public AjaxResult getVideoCount(TMonitorVO monitor) { - TMonitor tMonitor = new TMonitor(); - tMonitor.setCameraFunType(cameraFunType); - return success(tMonitorService.getVideoCount(tMonitor)); + return success(tMonitorService.getVideoCount(monitor)); } /** @@ -114,9 +112,9 @@ */ @PreAuthorize("@ss.hasPermi('system:monitor:list')") @GetMapping("/recoveryException") - public AjaxResult recoveryException() + public AjaxResult recoveryException(TMonitorVO monitor) { - return success(tMonitorService.recoveryException()); + return success(tMonitorService.recoveryException(monitor)); } -- Gitblit v1.8.0