|
|
@ -2,6 +2,7 @@ package com.elink.esua.epdc.optimize.modules.deptlevel.controller; |
|
|
|
|
|
|
|
import com.elink.esua.epdc.commons.tools.utils.Result; |
|
|
|
import com.elink.esua.epdc.dto.DeptLevelAndLeaderDTO; |
|
|
|
import com.elink.esua.epdc.dto.epdc.form.EpdcParentIdFormDTO; |
|
|
|
import com.elink.esua.epdc.optimize.modules.deptlevel.service.OptSysDeptService; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
@ -53,6 +54,12 @@ public class OptDeptLevelController { |
|
|
|
return new Result().ok(parentDeptIds); |
|
|
|
} |
|
|
|
|
|
|
|
@GetMapping("deptlevel/getParentId") |
|
|
|
public Result<List<Long>> getParentId(@RequestBody EpdcParentIdFormDTO formDto) { |
|
|
|
List<Long> parentDeptIds = optSysDeptService.listParentDeptIds(formDto.getTypeKeys(), formDto.getDeptId()); |
|
|
|
return new Result().ok(parentDeptIds); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 根据部门类别,过滤部门权限 |
|
|
|
* |
|
|
|