DepartmentService接口中queryIndexPatternByDepartmentId的源代码
@Override
public QueryIndexPatternResponse queryIndexPatternByDepartmentId(QueryIndexPatternRequest request) {
QueryDepartmentIndexPatternResponse response = new QueryDepartmentIndexPatternResponse();
if (StringUtils.isEmpty(departmentId)) {
throw new TitanException("所传参数为空");
}
Department department = getDepartmentById(request.getdepartmentId());
if (department == null) {
RespUtils.setError(ErrCodeEnum.DEPARTMENT_NOT_EXIST, response);
return response;
}
List<UserDepartmentIndexPatternItem> list=indexPatternServive.getDepartmentIndexPatternByDepartmrntId(request.getDepartmentId());
response.setIndexPatternitemList(list);
RespUtils.setSuccess(response);
return response;
}