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

This commit is contained in:
2022-11-22 10:35:00 +08:00
parent a81a815636
commit dba5edcd35
5 changed files with 40 additions and 1 deletions

View File

@@ -271,7 +271,7 @@ public class DeptController extends BaseController {
}
/**
* 根据部门获取部门信息
* 根据部门Id获取部门信息
* @author cdf
* @date 2022/7/12
*/
@@ -284,6 +284,20 @@ public class DeptController extends BaseController {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
}
/**
* 根据部门code获取部门信息
* @author cdf
* @date 2022/7/12
*/
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
@GetMapping("/getDeptByCode")
@ApiOperation("根据部门Id获取部门信息")
public HttpResult<Dept> getDeptByCode(@RequestParam("deptCode")String deptCode) {
String methodDescribe = getMethodDescribe("getDeptByCode");
Dept result = deptService.getDeptByCode(deptCode);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, result, methodDescribe);
}
/**
* 根据部门id获取所有子部门ids