From 70dfa087a9f61ecc33f3b5bc618202c2023e38f3 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期一, 19 八月 2024 15:45:26 +0800 Subject: [PATCH] 优云接口工单生成 --- ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java | 40 ++++++++++++++++++++++++++++++++-------- 1 files changed, 32 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..3ac12c1 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,35 @@ /** * 鍒犻櫎璁惧璧勪骇 */ -// @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/{cameraFunType}") + public AjaxResult getVideoCount(@PathVariable String cameraFunType) + { + TMonitor tMonitor = new TMonitor(); + tMonitor.setCameraFunType(cameraFunType); + return success(tMonitorService.getVideoCount(tMonitor)); + } + + /** + * 鑾峰彇寮傚父鎭㈠瑙嗛璁惧缁熻鏁� + */ + @PreAuthorize("@ss.hasPermi('system:monitor:list')") + @GetMapping("/recoveryException") + public AjaxResult recoveryException() + { + return success(tMonitorService.recoveryException()); + } + + } -- Gitblit v1.8.0