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 |   38 ++++++++++++++++++++++++++++++--------
 1 files changed, 30 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 7591d6e..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,9 +32,9 @@
     /**
      * 鏌ヨ璁惧璧勪骇鍒楄〃
      */
-//    @PreAuthorize("@ss.hasPermi('system:monitor:list')")
+    @PreAuthorize("@ss.hasPermi('system:monitor:list')")
     @GetMapping("/list")
-    public TableDataInfo list(TMonitor tMonitor)
+    public TableDataInfo list(TMonitorVO tMonitor)
     {
         startPage();
         List<TMonitorVO> list = tMonitorService.selectTMonitorList(tMonitor);
@@ -44,10 +44,10 @@
     /**
      * 瀵煎嚭璁惧璧勪骇鍒楄〃
      */
-//    @PreAuthorize("@ss.hasPermi('system:monitor:export')")
+   @PreAuthorize("@ss.hasPermi('system:monitor:export')")
     @Log(title = "璁惧璧勪骇", businessType = BusinessType.EXPORT)
     @PostMapping("/export")
-    public void export(HttpServletResponse response, TMonitor tMonitor)
+    public void export(HttpServletResponse response, TMonitorVO tMonitor)
     {
         List<TMonitorVO> list = tMonitorService.selectTMonitorList(tMonitor);
         ExcelUtil<TMonitorVO> util = new ExcelUtil<TMonitorVO>(TMonitorVO.class);
@@ -57,7 +57,7 @@
     /**
      * 鑾峰彇璁惧璧勪骇璇︾粏淇℃伅
      */
-//    @PreAuthorize("@ss.hasPermi('system:monitor:query')")
+   @PreAuthorize("@ss.hasPermi('system:monitor:query')")
     @GetMapping(value = "/{id}")
     public AjaxResult getInfo(@PathVariable("id") Long id)
     {
@@ -67,7 +67,7 @@
     /**
      * 鏂板璁惧璧勪骇
      */
-//    @PreAuthorize("@ss.hasPermi('system:monitor:add')")
+   @PreAuthorize("@ss.hasPermi('system:monitor:add')")
     @Log(title = "璁惧璧勪骇", businessType = BusinessType.INSERT)
     @PostMapping
     public AjaxResult add(@RequestBody TMonitor tMonitor)
@@ -78,7 +78,7 @@
     /**
      * 淇敼璁惧璧勪骇
      */
-//    @PreAuthorize("@ss.hasPermi('system:monitor:edit')")
+   @PreAuthorize("@ss.hasPermi('system:monitor:edit')")
     @Log(title = "璁惧璧勪骇", businessType = BusinessType.UPDATE)
     @PutMapping
     public AjaxResult edit(@RequestBody TMonitor tMonitor)
@@ -89,11 +89,33 @@
     /**
      * 鍒犻櫎璁惧璧勪骇
      */
-//    @PreAuthorize("@ss.hasPermi('system:monitor:remove')")
+   @PreAuthorize("@ss.hasPermi('system:monitor:remove')")
     @Log(title = "璁惧璧勪骇", businessType = BusinessType.DELETE)
 	@DeleteMapping("/{ids}")
     public AjaxResult remove(@PathVariable Long[] ids)
     {
         return toAjax(tMonitorService.deleteTMonitorByIds(ids));
     }
+
+    /**
+     * 鑾峰彇瑙嗛璁惧缁熻鏁�
+     */
+    @PreAuthorize("@ss.hasPermi('system:monitor:list')")
+    @GetMapping("/getVideoCount")
+    public AjaxResult getVideoCount(TMonitorVO monitor)
+    {
+        return success(tMonitorService.getVideoCount(monitor));
+    }
+
+    /**
+     * 鑾峰彇寮傚父鎭㈠瑙嗛璁惧缁熻鏁�
+     */
+    @PreAuthorize("@ss.hasPermi('system:monitor:list')")
+    @GetMapping("/recoveryException")
+    public AjaxResult recoveryException(TMonitorVO monitor)
+    {
+        return success(tMonitorService.recoveryException(monitor));
+    }
+
+
 }

--
Gitblit v1.8.0