添加通过部门编号查询部门接口
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user