jinlin
2024-01-10 cdf29a8f6fb9990f82ccc1d3f47bfba48cfaf4fc
zt/core/src/main/java/com/zt/modules/sys/controller/SysDeptController.java
@@ -42,7 +42,14 @@
    @RequiresPermissions("sys:dept:list")
    public Result<List<SysDept>> pageList(@RequestParam Long companyId) {
        List<SysDept> list = sysDeptService.getDeptList(companyId);
        return Result.ok(list);
    }
    @GetMapping("getList")
    @ApiOperation("部门列表")
    // @RequiresPermissions("sys:dept:list")
    public Result<List<SysDept>> getlist() {
        List<SysDept> list = sysDeptService.getDeptList3();
        return Result.ok(list);
    }
@@ -51,7 +58,6 @@
    // @RequiresPermissions("sys:dept:list")
    public Result<List<SysDept>> list() {
        List<SysDept> list = sysDeptService.getDeptTree();
        return Result.ok(list);
    }
@@ -60,7 +66,6 @@
    // @RequiresPermissions("sys:dept:list")
    public Result<List<SysDept>> list2() {
        List<SysDept> list = sysDeptService.getDeptTreeRegister();
        return Result.ok(list);
    }