diff --git a/dl-module-company/src/main/java/cn/iocoder/yudao/module/property/controller/admin/PropertyPosController.java b/dl-module-company/src/main/java/cn/iocoder/yudao/module/property/controller/admin/PropertyPosController.java index 3f026f68..1bb43e24 100644 --- a/dl-module-company/src/main/java/cn/iocoder/yudao/module/property/controller/admin/PropertyPosController.java +++ b/dl-module-company/src/main/java/cn/iocoder/yudao/module/property/controller/admin/PropertyPosController.java @@ -38,7 +38,6 @@ public class PropertyPosController { @PutMapping("/update") @Operation(summary = "更新企业管理-资产存放位置") - @PreAuthorize("@ss.hasPermission('company:property-pos:update')") public CommonResult updatePropertyPos(@RequestBody PropertyPosReqVO updateReqVO) { propertyPosService.updatePropertyPos(updateReqVO); return success(true); @@ -47,7 +46,6 @@ public class PropertyPosController { @DeleteMapping("/delete") @Operation(summary = "删除企业管理-资产存放位置") @Parameter(name = "id", description = "编号", required = true) - @PreAuthorize("@ss.hasPermission('company:property-pos:delete')") public CommonResult deletePropertyPos(@RequestParam("id") String id) { propertyPosService.deletePropertyPos(id); return success(true); @@ -56,7 +54,6 @@ public class PropertyPosController { @GetMapping("/get") @Operation(summary = "获得企业管理-资产存放位置") @Parameter(name = "id", description = "编号", required = true, example = "1024") - @PreAuthorize("@ss.hasPermission('company:property-pos:query')") public CommonResult getPropertyPos(@RequestParam("id") String id) { PropertyPos propertyPos = propertyPosService.getPropertyPos(id); return success(BeanUtils.toBean(propertyPos, PropertyPosRespVO.class)); @@ -64,7 +61,6 @@ public class PropertyPosController { @GetMapping("/page") @Operation(summary = "获得企业管理-资产存放位置分页") - @PreAuthorize("@ss.hasPermission('company:property-pos:query')") public CommonResult> getPropertyPosPage(PropertyPosReqVO pageReqVO, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize) { @@ -80,7 +76,6 @@ public class PropertyPosController { **/ @GetMapping("/list") @Operation(summary = "获得企业管理-资产存放位置列表") - @PreAuthorize("@ss.hasPermission('company:property-pos:query')") public CommonResult> getPropertyPosList() { return success(propertyPosService.list()); } @@ -93,7 +88,6 @@ public class PropertyPosController { **/ @GetMapping("/listByCorpId") @Operation(summary = "获得企业管理-资产存放位置列表") - @PreAuthorize("@ss.hasPermission('company:property-deal:query')") public CommonResult> getPositionByCorpId(String id){ return success(propertyPosService.list(new LambdaQueryWrapper().eq(PropertyPos::getCorpId, id))); } diff --git a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/AuthController.java b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/AuthController.java index f9fcd2e9..a378d835 100644 --- a/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/AuthController.java +++ b/yudao-module-system/yudao-module-system-biz/src/main/java/cn/iocoder/yudao/module/system/controller/admin/auth/AuthController.java @@ -117,7 +117,7 @@ public class AuthController { if (loginBody.getTypes().equals("3") && !roleNames.contains("教练")){ return error(new ErrorCode(2_002_000_005, "当前登录用户未分配教练角色")); } - if (loginBody.getTypes().equals("2") && !roleNames.contains("驾校管理员")){ + if (loginBody.getTypes().equals("2") && !roleNames.contains("驾校业务管理员")){ return error(new ErrorCode(2_002_000_005, "当前登录用户未分配驾校管理员角色")); }