Commit 3e2a6813 by zhiwj

添加审核员接口

parent 345c76fe
......@@ -96,6 +96,19 @@ public interface AuditorApiService {
ServiceResponse<List<AuditorDTO>> listAuditorByProject(Integer projectItemId, Integer userId, Integer enterpriseId);
/**
* 查所有的审核员
* @Title: listAuditorByProject
* @Description:
* @author zhiwj
* @param projectItemCode
* @param userId
* @param enterpriseId
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.auth.dto.AuditorDTO>>
* @throws
*/
ServiceResponse<List<AuditorDTO>> listAuditorByProject(String projectItemCode, Integer userId, Integer enterpriseId);
/**
* 通过openid查询审核员
* @Title: getAuditorByOpenid
* @Description:
......
......@@ -249,6 +249,16 @@ public class AuditorApiServiceImpl implements AuditorApiService {
}
@Override
public ServiceResponse<List<AuditorDTO>> listAuditorByProject(String projectItemCode, Integer userId, Integer enterpriseId) {
ServiceResponse<ProjectItemDTO> projectItemResponse = this.projectItemApiService.getByProjectItemCode(projectItemCode);
if (!projectItemResponse.isSuccess()) {
return EnterpriseServiceResponse.failure(ErrorCode.NOTEXISTS);
}
ProjectItemDTO itemDTO = projectItemResponse.getResult();
return this.listAuditorByProject(itemDTO.getProjectItemId(), userId, enterpriseId);
}
@Override
public ServiceResponse<AuditorDTO> getAuditorByOpenid(String openid) {
TabAuditor auditor = this.auditorService.getAuditorByOpenid(openid);
if (auditor != null) {
......
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