From 73b1a59a66fb514e84729a3f95efe77a5505f4b4 Mon Sep 17 00:00:00 2001 From: chenbowen Date: Mon, 5 Jan 2026 19:44:45 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E7=BB=9F=E4=B8=80=E8=AE=A1=E9=87=8F?= =?UTF-8?q?=E5=8D=95=E4=BD=8D=E8=8F=9C=E5=8D=95=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/untInfo/UntInfoController.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/zt-module-base/zt-module-base-server/src/main/java/com/zt/plat/module/base/controller/admin/untInfo/UntInfoController.java b/zt-module-base/zt-module-base-server/src/main/java/com/zt/plat/module/base/controller/admin/untInfo/UntInfoController.java index 3fca1775..c5610929 100644 --- a/zt-module-base/zt-module-base-server/src/main/java/com/zt/plat/module/base/controller/admin/untInfo/UntInfoController.java +++ b/zt-module-base/zt-module-base-server/src/main/java/com/zt/plat/module/base/controller/admin/untInfo/UntInfoController.java @@ -43,14 +43,14 @@ public class UntInfoController implements BusinessControllerMarker { @PostMapping("/create") @Operation(summary = "创建计量单位") - @PreAuthorize("@ss.hasPermission('unitmanagement:unt-info:create')") + @PreAuthorize("@ss.hasPermission('unit-management:unt-info:create')") public CommonResult createUntInfo(@Valid @RequestBody UntInfoSaveReqVO createReqVO) { return success(untInfoService.createUntInfo(createReqVO)); } @PutMapping("/update") @Operation(summary = "更新计量单位") - @PreAuthorize("@ss.hasPermission('unitmanagement:unt-info:update')") + @PreAuthorize("@ss.hasPermission('unit-management:unt-info:update')") public CommonResult updateUntInfo(@Valid @RequestBody UntInfoSaveReqVO updateReqVO) { untInfoService.updateUntInfo(updateReqVO); return success(true); @@ -59,7 +59,7 @@ public class UntInfoController implements BusinessControllerMarker { @DeleteMapping("/delete") @Operation(summary = "删除计量单位") @Parameter(name = "id", description = "编号", required = true) - @PreAuthorize("@ss.hasPermission('unitmanagement:unt-info:delete')") + @PreAuthorize("@ss.hasPermission('unit-management:unt-info:delete')") public CommonResult deleteUntInfo(@RequestParam("id") Long id) { untInfoService.deleteUntInfo(id); return success(true); @@ -68,7 +68,7 @@ public class UntInfoController implements BusinessControllerMarker { @DeleteMapping("/delete-list") @Parameter(name = "ids", description = "编号", required = true) @Operation(summary = "批量删除计量单位") - @PreAuthorize("@ss.hasPermission('unitmanagement:unt-info:delete')") + @PreAuthorize("@ss.hasPermission('unit-management:unt-info:delete')") public CommonResult deleteUntInfoList(@RequestBody BatchDeleteReqVO req) { untInfoService.deleteUntInfoListByIds(req.getIds()); return success(true); @@ -77,7 +77,7 @@ public class UntInfoController implements BusinessControllerMarker { @GetMapping("/get") @Operation(summary = "获得计量单位") @Parameter(name = "id", description = "编号", required = true, example = "1024") - @PreAuthorize("@ss.hasPermission('unitmanagement:unt-info:query')") + @PreAuthorize("@ss.hasPermission('unit-management:unt-info:query')") public CommonResult getUntInfo(@RequestParam("id") Long id) { UntInfoDO untInfo = untInfoService.getUntInfo(id); return success(BeanUtils.toBean(untInfo, UntInfoRespVO.class)); @@ -85,7 +85,7 @@ public class UntInfoController implements BusinessControllerMarker { @GetMapping("/page") @Operation(summary = "获得计量单位分页") - @PreAuthorize("@ss.hasPermission('unitmanagement:unt-info:query')") + @PreAuthorize("@ss.hasPermission('unit-management:unt-info:query')") public CommonResult> getUntInfoPage(@Valid UntInfoPageReqVO pageReqVO) { PageResult pageResult = untInfoService.getUntInfoPage(pageReqVO); return success(BeanUtils.toBean(pageResult, UntInfoRespVO.class)); @@ -93,7 +93,7 @@ public class UntInfoController implements BusinessControllerMarker { @GetMapping("/export-excel") @Operation(summary = "导出计量单位 Excel") - @PreAuthorize("@ss.hasPermission('unitmanagement:unt-info:export')") + @PreAuthorize("@ss.hasPermission('unit-management:unt-info:export')") @ApiAccessLog(operateType = EXPORT) public void exportUntInfoExcel(@Valid UntInfoPageReqVO pageReqVO, HttpServletResponse response) throws IOException {