Commit a2464baf by guojuxing

根据userid查询审核员接口调整

parent 0dcdff26
......@@ -290,6 +290,9 @@ public class AuditorApiServiceImpl implements AuditorApiService {
@Override
public ServiceResponse<AuditorDTO> getAuditorByUserId(Integer enterpriseId, Integer userId) {
TabAuditor auditor = auditorService.getAuditorByUserId(enterpriseId, userId);
if (auditor == null) {
return ServiceResponse.failure(ErrorCode.PARAMETER_ERROR.getCode(), "查询不到审核员数据");
}
AuditorDTO auditorDTO = EntityUtil.changeEntityByJSON(AuditorDTO.class, auditor);
setUserInfo(Arrays.asList(auditorDTO));
return EnterpriseServiceResponse.success(auditorDTO);
......
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