Commit fd129fda by zhiwj

好办审核

parent 0b8949eb
......@@ -284,17 +284,18 @@ public class AuditorApiServiceImpl implements AuditorApiService {
Integer projectItemId = projectItemResponse.getResult().getProjectItemId();
// 找到审批项对应的审核员
List<Integer> projectAuditorIds = auditorProjectItemRelService.listAuditorIdByProjectItemId(enterpriseId, projectItemId);
AuditorListQO listQO = new AuditorListQO();
listQO.setEnterpriseId(enterpriseId);
listQO.setIsUse(GlobalInfo.DATA_STATUS_NORMAL);
listQO.setAuditorIdList(projectAuditorIds);
List<TabAuditor> auditorList = this.auditorService.listAuditor(listQO);
if (CollectionUtils.isNotEmpty(auditorList)) {
return ServiceResponse.success(EntityUtil.changeEntityListByJSON(AuditorDTO.class, auditorList));
} else {
AuditorDTO adminAuditor = this.getAdminAuditor(enterpriseId);
return ServiceResponse.success(Collections.singletonList(adminAuditor));
if (CollectionUtils.isNotEmpty(projectAuditorIds)) {
AuditorListQO listQO = new AuditorListQO();
listQO.setEnterpriseId(enterpriseId);
listQO.setIsUse(GlobalInfo.DATA_STATUS_NORMAL);
listQO.setAuditorIdList(projectAuditorIds);
List<TabAuditor> auditorList = this.auditorService.listAuditor(listQO);
if (CollectionUtils.isNotEmpty(auditorList)) {
return ServiceResponse.success(EntityUtil.changeEntityListByJSON(AuditorDTO.class, auditorList));
}
}
AuditorDTO adminAuditor = this.getAdminAuditor(enterpriseId);
return ServiceResponse.success(Collections.singletonList(adminAuditor));
}
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment