From be1a4386caeb67857d3e0034d85d9d999f3df293 Mon Sep 17 00:00:00 2001 From: zch Date: Wed, 28 May 2025 11:34:23 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ems):=20=E7=A7=BB=E9=99=A4=20RecordIot?= =?UTF-8?q?envInstantController=20=E4=B8=AD=E7=9A=84=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 移除了 RecordIotenvInstantController 类中各个方法的 @PreAuthorize 注解,包括: - 列表查询 - 导出 - 信息获取 - 新增 - 修改- 删除 - 获取 RecordIotenvInstant 列表 这次修改影响了控制器中的所有方法,旨在调整权限控制机制。 --- .../record/controller/RecordIotenvInstantController.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/os-ems/src/main/java/com/os/ems/record/controller/RecordIotenvInstantController.java b/os-ems/src/main/java/com/os/ems/record/controller/RecordIotenvInstantController.java index 0513bfb..c0748e7 100644 --- a/os-ems/src/main/java/com/os/ems/record/controller/RecordIotenvInstantController.java +++ b/os-ems/src/main/java/com/os/ems/record/controller/RecordIotenvInstantController.java @@ -37,7 +37,6 @@ public class RecordIotenvInstantController extends BaseController /** * 查询物联网数据列表 */ - @PreAuthorize("@ss.hasPermi('ems/record:recordIotenvInstant:list')") @GetMapping("/list") public TableDataInfo list (RecordIotenvInstant recordIotenvInstant)throws ParseException { @@ -51,7 +50,6 @@ public class RecordIotenvInstantController extends BaseController /** * 导出物联网数据列表 */ - @PreAuthorize("@ss.hasPermi('ems/record:recordIotenvInstant:export')") @Log(title = "物联网数据", businessType = BusinessType.EXPORT) @PostMapping("/export") public void export(HttpServletResponse response, RecordIotenvInstant recordIotenvInstant)throws ParseException @@ -64,7 +62,6 @@ public class RecordIotenvInstantController extends BaseController /** * 获取物联网数据详细信息 */ - @PreAuthorize("@ss.hasPermi('ems/record:recordIotenvInstant:query')") @GetMapping(value = "/{objid}") public AjaxResult getInfo(@PathVariable("objid") Long objid) { @@ -74,7 +71,6 @@ public class RecordIotenvInstantController extends BaseController /** * 新增物联网数据 */ - @PreAuthorize("@ss.hasPermi('ems/record:recordIotenvInstant:add')") @Log(title = "物联网数据", businessType = BusinessType.INSERT) @PostMapping public AjaxResult add(@RequestBody RecordIotenvInstant recordIotenvInstant) @@ -86,7 +82,6 @@ public class RecordIotenvInstantController extends BaseController /** * 修改物联网数据 */ - @PreAuthorize("@ss.hasPermi('ems/record:recordIotenvInstant:edit')") @Log(title = "物联网数据", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody RecordIotenvInstant recordIotenvInstant) @@ -98,7 +93,6 @@ public class RecordIotenvInstantController extends BaseController /** * 删除物联网数据 */ - @PreAuthorize("@ss.hasPermi('ems/record:recordIotenvInstant:remove')") @Log(title = "物联网数据", businessType = BusinessType.DELETE) @DeleteMapping("/{objids}") public AjaxResult remove(@PathVariable Long[] objids) @@ -106,7 +100,6 @@ public class RecordIotenvInstantController extends BaseController return toAjax(recordIotenvInstantService.deleteRecordIotenvInstantByObjids(objids)); } - @PreAuthorize("@ss.hasPermi('ems/record:recordIotenvInstant:list')") @GetMapping("/getRecordIotenvInstantList") public AjaxResult getRecordIotenvInstantList (RecordIotenvInstant recordIotenvInstant)throws ParseException {