新增查询挡墙部门直属下级部门(没有下级部门返回当前部门)接口

This commit is contained in:
huangzj
2023-01-11 10:48:31 +08:00
parent 81bb7c6468
commit de08816b36
5 changed files with 75 additions and 5 deletions

View File

@@ -392,6 +392,21 @@ public class DeptController extends BaseController {
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.FAIL, null, methodDescribe);
}
}
/**
* @Description: "获取当前部门的的下级子部门list如果没子部门就是返回当前部门
* @Param: [deptId]
* @return: com.njcn.common.pojo.response.HttpResult<java.util.List<com.njcn.user.pojo.dto.DeptDTO>>
* @Author: clam
* @Date: 2023/1/10
*/
@OperateInfo(info = LogEnum.SYSTEM_COMMON)
@GetMapping("/getDepSonDetailIdByDeptId")
@ApiOperation("获取当前部门的的下级子部门list如果没子部门就是返回当前部门")
public HttpResult<List<DeptDTO>> getDepSonDetailByDeptId(@RequestParam("deptId")String deptId) {
String methodDescribe = getMethodDescribe("getDepSonDetailByDeptId");
List<DeptDTO> deptList = deptService.getDepSonDetailByDeptId(deptId);
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, deptList, methodDescribe);
}