heheng
3 天以前 a8a6760635f0642a2cbf61854b5587d9d0944985
multi-admin/src/main/java/com/gkhy/exam/admin/controller/system/SysDeptController.java
@@ -7,6 +7,8 @@
import com.gkhy.exam.common.domain.TreeSelect;
import com.gkhy.exam.common.domain.entity.SysDept;
import com.gkhy.exam.system.domain.SysFunctionalDistribution;
import com.gkhy.exam.system.domain.SysFunctionalRemark;
import com.gkhy.exam.system.domain.req.SysDeptPageReq;
import com.gkhy.exam.system.domain.vo.DeptVo;
import com.gkhy.exam.system.domain.vo.FunctionalDistributionVo;
import com.gkhy.exam.system.domain.vo.SysDeptResponsibilityReqVo;
@@ -54,12 +56,33 @@
        return CommonResult.success(depts);
    }
    @GetMapping("/getOutDeptList")
    @ApiOperation(value = "获取部门列表简化版本")
    public CommonResult getOutDeptList(SysDept dept)
    {
        List<SysDept> outDeptList = deptService.getOutDeptList(dept);
        return CommonResult.success(outDeptList);
    }
    @GetMapping("/pageList")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "pageNum", dataType = "int", required = false, value = "当前页,默认1"),
            @ApiImplicitParam(paramType = "query", name = "pageSize", dataType = "int", required = false, value = "每页数目,默认10"),
    })
    @ApiOperation(value = "获取部门列表分页")
    public CommonResult pageList(SysDeptPageReq dept)
    {
        return CommonResult.success(deptService.selectDeptPageList(dept));
    }
    @GetMapping("/treeList")
    @ApiOperation(value = "获取部门列表树状")
    public CommonResult treeList(SysDept dept)
    {
        List<SysDept> treeSelects = deptService.selectDeptTreeList(dept);
        List<TreeSelect> treeSelects = deptService.selectDeptTreeList(dept);
        return CommonResult.success(treeSelects);
    }
@@ -124,6 +147,18 @@
        return CommonResult.success(functionalDistributionList);
    }
    @GetMapping("/functionalRemarkList")
    @ApiOperation(value = "职能分配备注数据")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "companyId", dataType = "Long", required = true, value = "公司id"),
    })
    public CommonResult functionalRemarkList(@RequestParam Long companyId)
    {
        List<SysFunctionalRemark> functionalRemarkList = deptService.getFunctionalRemarkList(companyId);
        return CommonResult.success(functionalRemarkList);
    }
    @PostMapping("/saveFunctionalDistribution")
    @ApiOperation(value = "保存职能分配")
@@ -137,7 +172,7 @@
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "query", name = "companyId", dataType = "Long", required = true, value = "公司id"),
    })
    public CommonResult initFunctionalDistribution(@RequestParam Long companyId) {
    public CommonResult initFunctionalDistribution(@RequestParam("companyId") Long companyId) {
        return CommonResult.success(deptService.initFunctionalDistribution(companyId));
    }