添加通过部门编号查询部门接口

This commit is contained in:
2022-11-28 10:14:37 +08:00
parent ae39bcf84c
commit a9f0b494b0
9 changed files with 80 additions and 2 deletions

View File

@@ -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