From 417d6f739ce71df6b6276d48c4addab601789ee6 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期四, 18 四月 2024 16:25:15 +0800 Subject: [PATCH] 接口权限精确到按钮 --- ycl-server/src/main/java/com/ycl/platform/controller/TMonitorVideoController.java | 12 +++--- ycl-server/src/main/java/com/ycl/platform/controller/YwThresholdController.java | 13 +++--- ycl-server/src/main/java/com/ycl/platform/controller/CheckRuleController.java | 4 +- ycl-server/src/main/java/com/ycl/platform/controller/CheckTemplateController.java | 8 ++-- ycl-server/src/main/java/com/ycl/platform/controller/CalculateRuleController.java | 4 +- ycl-server/src/main/java/com/ycl/platform/controller/TContractController.java | 12 +++--- ycl-server/src/main/java/com/ycl/platform/controller/TMonitorController.java | 15 ++++--- ycl-server/src/main/java/com/ycl/platform/controller/VehicleDataMonitorController.java | 10 ++-- ycl-server/src/main/java/com/ycl/platform/controller/CheckResultController.java | 4 +- ycl-server/src/main/java/com/ycl/platform/controller/TPlatformController.java | 13 +++--- 10 files changed, 50 insertions(+), 45 deletions(-) diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/CalculateRuleController.java b/ycl-server/src/main/java/com/ycl/platform/controller/CalculateRuleController.java index 5266676..625155a 100644 --- a/ycl-server/src/main/java/com/ycl/platform/controller/CalculateRuleController.java +++ b/ycl-server/src/main/java/com/ycl/platform/controller/CalculateRuleController.java @@ -30,7 +30,7 @@ /** * 鏌ヨ鏍哥畻瑙勫垯鍒楄〃 */ -// @PreAuthorize("@ss.hasPermi('calculate:rule:list')") + @PreAuthorize("@ss.hasPermi('calculate:rule:list')") @GetMapping("/list") public AjaxResult list(CalculateRule calculateRule) { @@ -54,7 +54,7 @@ /** * 鑾峰彇鏍哥畻瑙勫垯璇︾粏淇℃伅 */ -// @PreAuthorize("@ss.hasPermi('calculate:rule:query')") + @PreAuthorize("@ss.hasPermi('calculate:rule:query')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/CheckResultController.java b/ycl-server/src/main/java/com/ycl/platform/controller/CheckResultController.java index df22a05..527c258 100644 --- a/ycl-server/src/main/java/com/ycl/platform/controller/CheckResultController.java +++ b/ycl-server/src/main/java/com/ycl/platform/controller/CheckResultController.java @@ -31,7 +31,7 @@ /** * 鏌ヨ鑰冩牳缁撴灉鍒楄〃 */ -// @PreAuthorize("@ss.hasPermi('system:result:list')") + @PreAuthorize("@ss.hasPermi('system:result:list')") @GetMapping("/list") public TableDataInfo list(CheckResult checkResult) { @@ -56,7 +56,7 @@ /** * 鑾峰彇鑰冩牳缁撴灉璇︾粏淇℃伅 */ -// @PreAuthorize("@ss.hasPermi('system:result:query')") + @PreAuthorize("@ss.hasPermi('system:result:query')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/CheckRuleController.java b/ycl-server/src/main/java/com/ycl/platform/controller/CheckRuleController.java index 81ae394..23d7dcd 100644 --- a/ycl-server/src/main/java/com/ycl/platform/controller/CheckRuleController.java +++ b/ycl-server/src/main/java/com/ycl/platform/controller/CheckRuleController.java @@ -34,7 +34,7 @@ /** * 鏌ヨ鑰冩牳瑙勫垯鍒楄〃 */ -// @PreAuthorize("@ss.hasPermi('system:rule:list')") + @PreAuthorize("@ss.hasPermi('system:rule:list')") @PostMapping("/list") public TableDataInfo list(@RequestBody CheckRuleQuery checkRuleQuery) { @@ -59,7 +59,7 @@ /** * 鑾峰彇鑰冩牳瑙勫垯璇︾粏淇℃伅 */ -// @PreAuthorize("@ss.hasPermi('system:rule:query')") + @PreAuthorize("@ss.hasPermi('system:rule:query')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/CheckTemplateController.java b/ycl-server/src/main/java/com/ycl/platform/controller/CheckTemplateController.java index 18f3e66..f386eac 100644 --- a/ycl-server/src/main/java/com/ycl/platform/controller/CheckTemplateController.java +++ b/ycl-server/src/main/java/com/ycl/platform/controller/CheckTemplateController.java @@ -34,7 +34,7 @@ /** * 鏌ヨ鑰冩牳妯℃澘鍒楄〃 */ -// @PreAuthorize("@ss.hasPermi('system:template:list')") + @PreAuthorize("@ss.hasPermi('system:template:list')") @GetMapping("/list") public TableDataInfo list(CheckTemplateQuery checkTemplateDTO) { @@ -46,7 +46,7 @@ /** * 瀵煎嚭鑰冩牳妯℃澘鍒楄〃 */ -// @PreAuthorize("@ss.hasPermi('system:template:export')") + @PreAuthorize("@ss.hasPermi('system:template:export')") @Log(title = "鑰冩牳妯℃澘", businessType = BusinessType.EXPORT) @PostMapping("/export") public void export(HttpServletResponse response, CheckTemplateQuery checkTemplateDTO) @@ -59,7 +59,7 @@ /** * 鑾峰彇鑰冩牳妯℃澘璇︾粏淇℃伅 */ -// @PreAuthorize("@ss.hasPermi('system:template:query')") + @PreAuthorize("@ss.hasPermi('system:template:query')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { @@ -69,7 +69,7 @@ /** * 鏂板鑰冩牳妯℃澘 */ -// @PreAuthorize("@ss.hasPermi('system:template:add')") + @PreAuthorize("@ss.hasPermi('system:template:add')") @Log(title = "鑰冩牳妯℃澘", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody CheckTemplateQuery checkTemplateDTO) diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/TContractController.java b/ycl-server/src/main/java/com/ycl/platform/controller/TContractController.java index 57daf5c..3ec4f1c 100644 --- a/ycl-server/src/main/java/com/ycl/platform/controller/TContractController.java +++ b/ycl-server/src/main/java/com/ycl/platform/controller/TContractController.java @@ -32,7 +32,7 @@ /** * 鏌ヨ銆愯濉啓鍔熻兘鍚嶇О銆戝垪琛� */ -// @PreAuthorize("@ss.hasPermi('system:contract:list')") + @PreAuthorize("@ss.hasPermi('system:contract:list')") @GetMapping("/list") public TableDataInfo list(TContract tContract) { @@ -44,7 +44,7 @@ /** * 瀵煎嚭銆愯濉啓鍔熻兘鍚嶇О銆戝垪琛� */ -// @PreAuthorize("@ss.hasPermi('system:contract:export')") + @PreAuthorize("@ss.hasPermi('system:contract:export')") @Log(title = "銆愯濉啓鍔熻兘鍚嶇О銆�", businessType = BusinessType.EXPORT) @PostMapping("/export") public void export(HttpServletResponse response, TContract tContract) @@ -57,7 +57,7 @@ /** * 鑾峰彇銆愯濉啓鍔熻兘鍚嶇О銆戣缁嗕俊鎭� */ -// @PreAuthorize("@ss.hasPermi('system:contract:query')") + @PreAuthorize("@ss.hasPermi('system:contract:query')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { @@ -67,7 +67,7 @@ /** * 鏂板銆愯濉啓鍔熻兘鍚嶇О銆� */ -// @PreAuthorize("@ss.hasPermi('system:contract:add')") + @PreAuthorize("@ss.hasPermi('system:contract:add')") @Log(title = "銆愯濉啓鍔熻兘鍚嶇О銆�", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody TContract tContract) @@ -78,7 +78,7 @@ /** * 淇敼銆愯濉啓鍔熻兘鍚嶇О銆� */ -// @PreAuthorize("@ss.hasPermi('system:contract:edit')") + @PreAuthorize("@ss.hasPermi('system:contract:edit')") @Log(title = "銆愯濉啓鍔熻兘鍚嶇О銆�", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody TContract tContract) @@ -89,7 +89,7 @@ /** * 鍒犻櫎銆愯濉啓鍔熻兘鍚嶇О銆� */ -// @PreAuthorize("@ss.hasPermi('system:contract:remove')") + @PreAuthorize("@ss.hasPermi('system:contract:remove')") @Log(title = "銆愯濉啓鍔熻兘鍚嶇О銆�", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) 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 f70f35f..436efa6 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 @@ -11,6 +11,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.web.bind.annotation.*; import java.util.List; @@ -31,7 +32,7 @@ /** * 鏌ヨ璁惧璧勪骇鍒楄〃 */ -// @PreAuthorize("@ss.hasPermi('system:monitor:list')") + @PreAuthorize("@ss.hasPermi('system:monitor:list')") @GetMapping("/list") public TableDataInfo list(TMonitor tMonitor) { @@ -43,7 +44,7 @@ /** * 瀵煎嚭璁惧璧勪骇鍒楄〃 */ -// @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) @@ -56,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) { @@ -66,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) @@ -77,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) @@ -88,7 +89,7 @@ /** * 鍒犻櫎璁惧璧勪骇 */ -// @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) @@ -99,6 +100,7 @@ /** * 鑾峰彇瑙嗛璁惧缁熻鏁� */ + @PreAuthorize("@ss.hasPermi('system:monitor:list')") @GetMapping("/getVideoCount/{cameraFunType}") public AjaxResult getVideoCount(@PathVariable String cameraFunType) { @@ -108,6 +110,7 @@ /** * 鑾峰彇寮傚父鎭㈠瑙嗛璁惧缁熻鏁� */ + @PreAuthorize("@ss.hasPermi('system:monitor:list')") @GetMapping("/recoveryException") public AjaxResult recoveryException() { diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorVideoController.java b/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorVideoController.java index 01de496..5a41f87 100644 --- a/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorVideoController.java +++ b/ycl-server/src/main/java/com/ycl/platform/controller/TMonitorVideoController.java @@ -31,7 +31,7 @@ /** * 鏌ヨ璁惧璧勪骇鍒楄〃 */ -// @PreAuthorize("@ss.hasPermi('system:video:list')") + @PreAuthorize("@ss.hasPermi('system:video:list')") @GetMapping("/list") public TableDataInfo list(TMonitorVideo tMonitorVideo) { @@ -43,7 +43,7 @@ /** * 瀵煎嚭璁惧璧勪骇鍒楄〃 */ -// @PreAuthorize("@ss.hasPermi('system:video:export')") + @PreAuthorize("@ss.hasPermi('system:video:export')") @Log(title = "璁惧璧勪骇", businessType = BusinessType.EXPORT) @PostMapping("/export") public void export(HttpServletResponse response, TMonitorVideo tMonitorVideo) @@ -56,7 +56,7 @@ /** * 鑾峰彇璁惧璧勪骇璇︾粏淇℃伅 */ -// @PreAuthorize("@ss.hasPermi('system:video:query')") + @PreAuthorize("@ss.hasPermi('system:video:query')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { @@ -66,7 +66,7 @@ /** * 鏂板璁惧璧勪骇 */ -// @PreAuthorize("@ss.hasPermi('system:video:add')") + @PreAuthorize("@ss.hasPermi('system:video:add')") @Log(title = "璁惧璧勪骇", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody TMonitorVideo tMonitorVideo) @@ -77,7 +77,7 @@ /** * 淇敼璁惧璧勪骇 */ -// @PreAuthorize("@ss.hasPermi('system:video:edit')") + @PreAuthorize("@ss.hasPermi('system:video:edit')") @Log(title = "璁惧璧勪骇", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody TMonitorVideo tMonitorVideo) @@ -88,7 +88,7 @@ /** * 鍒犻櫎璁惧璧勪骇 */ -// @PreAuthorize("@ss.hasPermi('system:video:remove')") + @PreAuthorize("@ss.hasPermi('system:video:remove')") @Log(title = "璁惧璧勪骇", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/TPlatformController.java b/ycl-server/src/main/java/com/ycl/platform/controller/TPlatformController.java index 167be5c..5c9eba9 100644 --- a/ycl-server/src/main/java/com/ycl/platform/controller/TPlatformController.java +++ b/ycl-server/src/main/java/com/ycl/platform/controller/TPlatformController.java @@ -10,6 +10,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.web.bind.annotation.*; import java.util.List; @@ -29,7 +30,7 @@ /** * 鏌ヨ骞冲彴杩愯鐩戞帶鍒楄〃 */ - // @PreAuthorize("@ss.hasPermi('platform:platform:list')") + @PreAuthorize("@ss.hasPermi('platform:platform:list')") @GetMapping("/list") public TableDataInfo list(TPlatform tPlatform) { startPage(); @@ -40,7 +41,7 @@ /** * 瀵煎嚭骞冲彴杩愯鐩戞帶鍒楄〃 */ - // @PreAuthorize("@ss.hasPermi('platform:platform:export')") + @PreAuthorize("@ss.hasPermi('platform:platform:export')") @Log(title = "骞冲彴杩愯鐩戞帶", businessType = BusinessType.EXPORT) @PostMapping("/export") public void export(HttpServletResponse response, TPlatform tPlatform) { @@ -52,7 +53,7 @@ /** * 鑾峰彇骞冲彴杩愯鐩戞帶璇︾粏淇℃伅 */ - // @PreAuthorize("@ss.hasPermi('platform:platform:query')") + @PreAuthorize("@ss.hasPermi('platform:platform:query')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { return success(tPlatformService.selectTPlatformById(id)); @@ -61,7 +62,7 @@ /** * 鏂板骞冲彴杩愯鐩戞帶 */ - // @PreAuthorize("@ss.hasPermi('platform:platform:add')") + @PreAuthorize("@ss.hasPermi('platform:platform:add')") @Log(title = "骞冲彴杩愯鐩戞帶", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody TPlatform tPlatform) { @@ -71,7 +72,7 @@ /** * 淇敼骞冲彴杩愯鐩戞帶 */ - // @PreAuthorize("@ss.hasPermi('platform:platform:edit')") + @PreAuthorize("@ss.hasPermi('platform:platform:edit')") @Log(title = "骞冲彴杩愯鐩戞帶", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody TPlatform tPlatform) { @@ -81,7 +82,7 @@ /** * 鍒犻櫎骞冲彴杩愯鐩戞帶 */ - // @PreAuthorize("@ss.hasPermi('platform:platform:remove')") + @PreAuthorize("@ss.hasPermi('platform:platform:remove')") @Log(title = "骞冲彴杩愯鐩戞帶", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Long[] ids) { diff --git a/ycl-server/src/main/java/com/ycl/platform/controller/VehicleDataMonitorController.java b/ycl-server/src/main/java/com/ycl/platform/controller/VehicleDataMonitorController.java index 1544d68..c52fd50 100644 --- a/ycl-server/src/main/java/com/ycl/platform/controller/VehicleDataMonitorController.java +++ b/ycl-server/src/main/java/com/ycl/platform/controller/VehicleDataMonitorController.java @@ -30,7 +30,7 @@ /** * 鏌ヨ鍗″彛杩囪溅鏁版嵁涓�鑷存�у垪琛� */ -// @PreAuthorize("@ss.hasPermi('platform:platform:list')") + @PreAuthorize("@ss.hasPermi('platform:platform:list')") @GetMapping("/list") public TableDataInfo list(VehicleDataMonitor vehicleDataMonitor) { startPage(); @@ -53,7 +53,7 @@ /** * 鑾峰彇鍗″彛杩囪溅鏁版嵁涓�鑷存�ц缁嗕俊鎭� */ -// @PreAuthorize("@ss.hasPermi('platform:platform:query')") + @PreAuthorize("@ss.hasPermi('platform:platform:query')") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Integer id) { return success(vehicleDataMonitorService.selectVehicleDataMonitorById(id)); @@ -62,7 +62,7 @@ /** * 鏂板鍗″彛杩囪溅鏁版嵁涓�鑷存�� */ -// @PreAuthorize("@ss.hasPermi('platform:platform:add')") + @PreAuthorize("@ss.hasPermi('platform:platform:add')") @Log(title = "鍗″彛杩囪溅鏁版嵁涓�鑷存��", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody VehicleDataMonitor vehicleDataMonitor) { @@ -72,7 +72,7 @@ /** * 淇敼鍗″彛杩囪溅鏁版嵁涓�鑷存�� */ -// @PreAuthorize("@ss.hasPermi('platform:platform:edit')") + @PreAuthorize("@ss.hasPermi('platform:platform:edit')") @Log(title = "鍗″彛杩囪溅鏁版嵁涓�鑷存��", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody VehicleDataMonitor vehicleDataMonitor) { @@ -82,7 +82,7 @@ /** * 鍒犻櫎鍗″彛杩囪溅鏁版嵁涓�鑷存�� */ -// @PreAuthorize("@ss.hasPermi('platform:platform:remove')") + @PreAuthorize("@ss.hasPermi('platform:platform:remove')") @Log(title = "鍗″彛杩囪溅鏁版嵁涓�鑷存��", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}") public AjaxResult remove(@PathVariable Integer[] ids) { 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