Commit fd129fda by zhiwj

好办审核

parent 0b8949eb
...@@ -284,17 +284,18 @@ public class AuditorApiServiceImpl implements AuditorApiService { ...@@ -284,17 +284,18 @@ public class AuditorApiServiceImpl implements AuditorApiService {
Integer projectItemId = projectItemResponse.getResult().getProjectItemId(); Integer projectItemId = projectItemResponse.getResult().getProjectItemId();
// 找到审批项对应的审核员 // 找到审批项对应的审核员
List<Integer> projectAuditorIds = auditorProjectItemRelService.listAuditorIdByProjectItemId(enterpriseId, projectItemId); List<Integer> projectAuditorIds = auditorProjectItemRelService.listAuditorIdByProjectItemId(enterpriseId, projectItemId);
AuditorListQO listQO = new AuditorListQO(); if (CollectionUtils.isNotEmpty(projectAuditorIds)) {
listQO.setEnterpriseId(enterpriseId); AuditorListQO listQO = new AuditorListQO();
listQO.setIsUse(GlobalInfo.DATA_STATUS_NORMAL); listQO.setEnterpriseId(enterpriseId);
listQO.setAuditorIdList(projectAuditorIds); listQO.setIsUse(GlobalInfo.DATA_STATUS_NORMAL);
List<TabAuditor> auditorList = this.auditorService.listAuditor(listQO); listQO.setAuditorIdList(projectAuditorIds);
if (CollectionUtils.isNotEmpty(auditorList)) { List<TabAuditor> auditorList = this.auditorService.listAuditor(listQO);
return ServiceResponse.success(EntityUtil.changeEntityListByJSON(AuditorDTO.class, auditorList)); if (CollectionUtils.isNotEmpty(auditorList)) {
} else { return ServiceResponse.success(EntityUtil.changeEntityListByJSON(AuditorDTO.class, auditorList));
AuditorDTO adminAuditor = this.getAdminAuditor(enterpriseId); }
return ServiceResponse.success(Collections.singletonList(adminAuditor));
} }
AuditorDTO adminAuditor = this.getAdminAuditor(enterpriseId);
return ServiceResponse.success(Collections.singletonList(adminAuditor));
} }
@Override @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