添加通过部门编号查询部门接口
This commit is contained in:
@@ -313,6 +313,20 @@ public class DeptController extends BaseController {
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, deptList, methodDescribe);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据部门id获取所有子部门的code
|
||||
* @author cdf
|
||||
* @date 2022/11/25
|
||||
*/
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@GetMapping("/getDepSonSelfCodetByDeptId")
|
||||
@ApiOperation("根据部门id获取所有子部门以及自身的code")
|
||||
public HttpResult<List<String>> getDepSonSelfCodetByDeptId(@RequestParam("deptId")String deptId) {
|
||||
String methodDescribe = getMethodDescribe("getDepSonSelfIdtByDeptId");
|
||||
List<String> deptList = deptService.getDepSonSelfCodetByDeptId(deptId);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, deptList, methodDescribe);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据部门id获取子部门ids
|
||||
* @author dhj
|
||||
|
||||
Reference in New Issue
Block a user