From ab4e150d41e0200b64a75c59b668a9385b7782fd Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 23 四月 2024 10:18:03 +0800 Subject: [PATCH] 表名修改 --- ycl-server/src/main/java/com/ycl/platform/controller/YwThresholdController.java | 13 +++++++------ 1 files changed, 7 insertions(+), 6 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 8feb6f7..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.*; @@ -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,7 +58,7 @@ /** * 鑾峰彇杩愮淮闃堝�艰缁嗕俊鎭� */ - // @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)); @@ -93,7 +94,7 @@ /** * 淇敼浜鸿劯闃堝�� */ - // @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) { @@ -103,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) { @@ -113,7 +114,7 @@ /** * 淇敼瑙嗛闃堝�� */ - // @PreAuthorize("@ss.hasPermi('ycl:threshold:edit')") + @PreAuthorize("@ss.hasPermi('ycl:threshold:edit')") @Log(title = "淇敼瑙嗛闃堝��", businessType = BusinessType.UPDATE) @PutMapping("/video") public AjaxResult editVideo(@RequestBody @Validated VideoThresholdForm form) { -- Gitblit v1.8.0