Commit fd129fda by zhiwj

好办审核

parent 0b8949eb
...@@ -284,6 +284,7 @@ public class AuditorApiServiceImpl implements AuditorApiService { ...@@ -284,6 +284,7 @@ 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);
if (CollectionUtils.isNotEmpty(projectAuditorIds)) {
AuditorListQO listQO = new AuditorListQO(); AuditorListQO listQO = new AuditorListQO();
listQO.setEnterpriseId(enterpriseId); listQO.setEnterpriseId(enterpriseId);
listQO.setIsUse(GlobalInfo.DATA_STATUS_NORMAL); listQO.setIsUse(GlobalInfo.DATA_STATUS_NORMAL);
...@@ -291,11 +292,11 @@ public class AuditorApiServiceImpl implements AuditorApiService { ...@@ -291,11 +292,11 @@ public class AuditorApiServiceImpl implements AuditorApiService {
List<TabAuditor> auditorList = this.auditorService.listAuditor(listQO); List<TabAuditor> auditorList = this.auditorService.listAuditor(listQO);
if (CollectionUtils.isNotEmpty(auditorList)) { if (CollectionUtils.isNotEmpty(auditorList)) {
return ServiceResponse.success(EntityUtil.changeEntityListByJSON(AuditorDTO.class, auditorList)); return ServiceResponse.success(EntityUtil.changeEntityListByJSON(AuditorDTO.class, auditorList));
} else { }
}
AuditorDTO adminAuditor = this.getAdminAuditor(enterpriseId); AuditorDTO adminAuditor = this.getAdminAuditor(enterpriseId);
return ServiceResponse.success(Collections.singletonList(adminAuditor)); return ServiceResponse.success(Collections.singletonList(adminAuditor));
} }
}
@Override @Override
public ServiceResponse<AuditorDTO> getAuditorByOpenid(String openid) { public ServiceResponse<AuditorDTO> getAuditorByOpenid(String openid) {
......
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