Commit 4576801e7543fcb86ab50fc260dd1488e067f173

Authored by YunaiV
1 parent e1f64eaa

1476 fix: 修复system模块岗位批量删除接口

yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/dept/PostController.java
@@ -64,6 +64,14 @@ public class PostController { @@ -64,6 +64,14 @@ public class PostController {
64 return success(true); 64 return success(true);
65 } 65 }
66 66
  67 + @DeleteMapping("delete-list")
  68 + @Operation(summary = "批量删除岗位")
  69 + @PreAuthorize("@ss.hasPermission('system:post:delete')")
  70 + public CommonResult<Boolean> deletePostList(@RequestParam("ids") List<Long> ids) {
  71 + postService.deletePostList(ids);
  72 + return success(true);
  73 + }
  74 +
67 @GetMapping(value = "/get") 75 @GetMapping(value = "/get")
68 @Operation(summary = "获得岗位信息") 76 @Operation(summary = "获得岗位信息")
69 @Parameter(name = "id", description = "岗位编号", required = true, example = "1024") 77 @Parameter(name = "id", description = "岗位编号", required = true, example = "1024")