部门代码调整 新增部门查询子部门接口
This commit is contained in:
@@ -291,7 +291,7 @@ public class DeptController extends BaseController {
|
||||
*/
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@GetMapping("/getDeptByCode")
|
||||
@ApiOperation("根据部门Id获取部门信息")
|
||||
@ApiOperation("根据部门code获取部门信息")
|
||||
public HttpResult<Dept> getDeptByCode(@RequestParam("deptCode")String deptCode) {
|
||||
String methodDescribe = getMethodDescribe("getDeptByCode");
|
||||
Dept result = deptService.getDeptByCode(deptCode);
|
||||
@@ -342,5 +342,24 @@ public class DeptController extends BaseController {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据部门id获取直接子部门及自身
|
||||
* @param deptId 部门编号
|
||||
* @author cdf
|
||||
* @date 2022/12/1
|
||||
*/
|
||||
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
|
||||
@GetMapping("/getDirectSonSelf")
|
||||
@ApiOperation("根据部门id获取直接子部门及自身")
|
||||
public HttpResult<List<Dept>> getDirectSonSelf(@RequestParam("deptId")String deptId){
|
||||
String methodDescribe = getMethodDescribe("getDirectSonSelf");
|
||||
List<Dept> deptList = deptService.getDirectSonSelf(deptId);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, deptList, methodDescribe);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user