科室查询相关去掉权限

This commit is contained in:
lxd 2025-02-13 16:01:23 +08:00
parent e24044aa69
commit 26be5029e3

View File

@ -41,14 +41,12 @@ public class InspectDepartmentController {
@PostMapping("/create") @PostMapping("/create")
@Operation(summary = "创建科室") @Operation(summary = "创建科室")
@PreAuthorize("@ss.hasPermission('inspect:department:create')")
public CommonResult<String> createDepartment(@Valid @RequestBody InspectDepartmentSaveReqVO createReqVO) { public CommonResult<String> createDepartment(@Valid @RequestBody InspectDepartmentSaveReqVO createReqVO) {
return success(departmentService.createDepartment(createReqVO)); return success(departmentService.createDepartment(createReqVO));
} }
@PutMapping("/update") @PutMapping("/update")
@Operation(summary = "更新科室") @Operation(summary = "更新科室")
@PreAuthorize("@ss.hasPermission('inspect:department:update')")
public CommonResult<Boolean> updateDepartment(@Valid @RequestBody InspectDepartmentSaveReqVO updateReqVO) { public CommonResult<Boolean> updateDepartment(@Valid @RequestBody InspectDepartmentSaveReqVO updateReqVO) {
departmentService.updateDepartment(updateReqVO); departmentService.updateDepartment(updateReqVO);
return success(true); return success(true);
@ -57,7 +55,6 @@ public class InspectDepartmentController {
@DeleteMapping("/delete") @DeleteMapping("/delete")
@Operation(summary = "删除科室") @Operation(summary = "删除科室")
@Parameter(name = "id", description = "编号", required = true) @Parameter(name = "id", description = "编号", required = true)
@PreAuthorize("@ss.hasPermission('inspect:department:delete')")
public CommonResult<Boolean> deleteDepartment(@RequestParam("id") String id) { public CommonResult<Boolean> deleteDepartment(@RequestParam("id") String id) {
departmentService.deleteDepartment(id); departmentService.deleteDepartment(id);
return success(true); return success(true);
@ -66,7 +63,6 @@ public class InspectDepartmentController {
@GetMapping("/get") @GetMapping("/get")
@Operation(summary = "获得科室") @Operation(summary = "获得科室")
@Parameter(name = "id", description = "编号", required = true, example = "1024") @Parameter(name = "id", description = "编号", required = true, example = "1024")
@PreAuthorize("@ss.hasPermission('inspect:department:query')")
public CommonResult<InspectDepartmentRespVO> getDepartment(@RequestParam("id") String id) { public CommonResult<InspectDepartmentRespVO> getDepartment(@RequestParam("id") String id) {
InspectDepartmentDO department = departmentService.getDepartment(id); InspectDepartmentDO department = departmentService.getDepartment(id);
return success(BeanUtils.toBean(department, InspectDepartmentRespVO.class)); return success(BeanUtils.toBean(department, InspectDepartmentRespVO.class));
@ -74,7 +70,6 @@ public class InspectDepartmentController {
@GetMapping("/page") @GetMapping("/page")
@Operation(summary = "获得科室分页") @Operation(summary = "获得科室分页")
@PreAuthorize("@ss.hasPermission('inspect:department:query')")
public CommonResult<PageResult<InspectDepartmentRespVO>> getDepartmentPage(@Valid InspectDepartmentPageReqVO pageReqVO) { public CommonResult<PageResult<InspectDepartmentRespVO>> getDepartmentPage(@Valid InspectDepartmentPageReqVO pageReqVO) {
PageResult<InspectDepartmentDO> pageResult = departmentService.getDepartmentPage(pageReqVO); PageResult<InspectDepartmentDO> pageResult = departmentService.getDepartmentPage(pageReqVO);
return success(BeanUtils.toBean(pageResult, InspectDepartmentRespVO.class)); return success(BeanUtils.toBean(pageResult, InspectDepartmentRespVO.class));
@ -82,7 +77,6 @@ public class InspectDepartmentController {
@GetMapping("/export-excel") @GetMapping("/export-excel")
@Operation(summary = "导出科室 Excel") @Operation(summary = "导出科室 Excel")
@PreAuthorize("@ss.hasPermission('inspect:department:export')")
@ApiAccessLog(operateType = EXPORT) @ApiAccessLog(operateType = EXPORT)
public void exportDepartmentExcel(@Valid InspectDepartmentPageReqVO pageReqVO, public void exportDepartmentExcel(@Valid InspectDepartmentPageReqVO pageReqVO,
HttpServletResponse response) throws IOException { HttpServletResponse response) throws IOException {