From 72efbdfb7f79bacacc559e552f8076e292073d0f Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期二, 23 四月 2024 16:45:49 +0800
Subject: [PATCH] 核算报告详情
---
ycl-server/src/main/java/com/ycl/platform/controller/YwThresholdController.java | 44 ++++++++++++++++++++++++++++++++++++--------
1 files changed, 36 insertions(+), 8 deletions(-)
diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/YwThresholdController.java b/ycl-server/src/main/java/com/ycl/platform/controller/YwThresholdController.java
index f314698..7a660a9 100644
--- a/ycl-server/src/main/java/com/ycl/platform/controller/YwThresholdController.java
+++ b/ycl-server/src/main/java/com/ycl/platform/controller/YwThresholdController.java
@@ -14,6 +14,7 @@
import enumeration.BusinessType;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@@ -26,7 +27,7 @@
* @date 2024-03-25
*/
@RestController
-@RequestMapping("/ycl/threshold")
+@RequestMapping("/threshold")
public class YwThresholdController extends BaseController {
@Autowired
private IYwThresholdService ywThresholdService;
@@ -34,7 +35,7 @@
/**
* 鏌ヨ杩愮淮闃堝�煎垪琛�
*/
- // @PreAuthorize("@ss.hasPermi('ycl:threshold:list')")
+ @PreAuthorize("@ss.hasPermi('ycl:threshold:list')")
@GetMapping("/list")
public TableDataInfo list(YwThreshold ywThreshold) {
startPage();
@@ -45,7 +46,7 @@
/**
* 瀵煎嚭杩愮淮闃堝�煎垪琛�
*/
- // @PreAuthorize("@ss.hasPermi('ycl:threshold:export')")
+ @PreAuthorize("@ss.hasPermi('ycl:threshold:export')")
@Log(title = "杩愮淮闃堝��", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, YwThreshold ywThreshold) {
@@ -57,16 +58,43 @@
/**
* 鑾峰彇杩愮淮闃堝�艰缁嗕俊鎭�
*/
- // @PreAuthorize("@ss.hasPermi('ycl:threshold:query')")
+ @PreAuthorize("@ss.hasPermi('ycl:threshold:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Integer id) {
return success(ywThresholdService.selectYwThresholdById(id));
}
/**
+ * 鑾峰彇浜鸿劯閰嶇疆
+ */
+ // @PreAuthorize("@ss.hasPermi('ycl:threshold:query')")
+ @GetMapping(value = "/face/{id}")
+ public AjaxResult getFace(@PathVariable("id") Integer id) {
+ return success(ywThresholdService.getFace(id));
+ }
+
+ /**
+ * 鑾峰彇杞﹁締閰嶇疆
+ */
+ // @PreAuthorize("@ss.hasPermi('ycl:threshold:query')")
+ @GetMapping(value = "/car/{id}")
+ public AjaxResult getCar(@PathVariable("id") Integer id) {
+ return success(ywThresholdService.getCar(id));
+ }
+
+ /**
+ * 鑾峰彇瑙嗛閰嶇疆
+ */
+ // @PreAuthorize("@ss.hasPermi('ycl:threshold:query')")
+ @GetMapping(value = "/video/{id}")
+ public AjaxResult getVideo(@PathVariable("id") Integer id) {
+ return success(ywThresholdService.getVideo(id));
+ }
+
+ /**
* 淇敼浜鸿劯闃堝��
*/
- // @PreAuthorize("@ss.hasPermi('ycl:threshold:edit')")
+ @PreAuthorize("@ss.hasPermi('ycl:threshold:edit')")
@Log(title = "淇敼浜鸿劯杩愮淮闃堝��", businessType = BusinessType.UPDATE)
@PutMapping("/face")
public AjaxResult editFace(@RequestBody @Validated FaceThresholdForm form) {
@@ -76,7 +104,7 @@
/**
* 淇敼杞﹁締闃堝��
*/
- // @PreAuthorize("@ss.hasPermi('ycl:threshold:edit')")
+ @PreAuthorize("@ss.hasPermi('ycl:threshold:edit')")
@Log(title = "淇敼杞﹁締闃堝��", businessType = BusinessType.UPDATE)
@PutMapping("/car")
public AjaxResult editCar(@RequestBody @Validated CarThresholdForm form) {
@@ -86,9 +114,9 @@
/**
* 淇敼瑙嗛闃堝��
*/
- // @PreAuthorize("@ss.hasPermi('ycl:threshold:edit')")
+ @PreAuthorize("@ss.hasPermi('ycl:threshold:edit')")
@Log(title = "淇敼瑙嗛闃堝��", businessType = BusinessType.UPDATE)
- @PutMapping("video")
+ @PutMapping("/video")
public AjaxResult editVideo(@RequestBody @Validated VideoThresholdForm form) {
return toAjax(ywThresholdService.editVideo(form));
}
--
Gitblit v1.8.0