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;

}

posted @ 2024-11-15 10:10  一曲微茫  阅读(1)  评论(0编辑  收藏  举报