|
|
|
|
@@ -10,15 +10,15 @@ import com.vetti.common.enums.FillTypeEnum;
|
|
|
|
|
import com.vetti.common.enums.StageEnum;
|
|
|
|
|
import com.vetti.common.exception.ServiceException;
|
|
|
|
|
import com.vetti.common.utils.SecurityUtils;
|
|
|
|
|
import com.vetti.hotake.domain.HotakeRolesApplyInfo;
|
|
|
|
|
import com.vetti.hotake.domain.HotakeRolesApplyOperRecord;
|
|
|
|
|
import com.vetti.hotake.domain.HotakeRolesInfo;
|
|
|
|
|
import com.vetti.hotake.domain.*;
|
|
|
|
|
import com.vetti.hotake.domain.dto.HotakeAiCvScoringRankingDto;
|
|
|
|
|
import com.vetti.hotake.domain.dto.HotakeCandidateCompatibilityDto;
|
|
|
|
|
import com.vetti.hotake.domain.dto.HotakeCvInfoDto;
|
|
|
|
|
import com.vetti.hotake.domain.dto.HotakeRolesApplyStageStatisticalDto;
|
|
|
|
|
import com.vetti.hotake.domain.dto.VcDto.*;
|
|
|
|
|
import com.vetti.hotake.domain.vo.HotakeRolesApplyStageVo;
|
|
|
|
|
import com.vetti.hotake.mapper.HotakeInitScreQuestionsReplyRecordInfoMapper;
|
|
|
|
|
import com.vetti.hotake.mapper.HotakeInitialScreeningQuestionsInfoMapper;
|
|
|
|
|
import com.vetti.hotake.mapper.HotakeRolesApplyInfoMapper;
|
|
|
|
|
import com.vetti.hotake.mapper.HotakeRolesInfoMapper;
|
|
|
|
|
import com.vetti.hotake.service.IHotakeRolesApplyInfoService;
|
|
|
|
|
@@ -53,6 +53,12 @@ public class HotakeRolesApplyInfoServiceImpl extends BaseServiceImpl implements
|
|
|
|
|
@Autowired
|
|
|
|
|
private ISysUserService userService;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private HotakeInitScreQuestionsReplyRecordInfoMapper initScreQuestionsReplyRecordInfoMapper;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private HotakeInitialScreeningQuestionsInfoMapper initialScreeningQuestionsInfoMapper;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询候选人岗位申请信息
|
|
|
|
|
*
|
|
|
|
|
@@ -98,6 +104,11 @@ public class HotakeRolesApplyInfoServiceImpl extends BaseServiceImpl implements
|
|
|
|
|
{
|
|
|
|
|
List<HotakeRolesApplyInfo> applyInfoList = hotakeRolesApplyInfoMapper.selectHotakeRolesApplyInfoList(hotakeRolesApplyInfo);
|
|
|
|
|
if(CollectionUtil.isNotEmpty(applyInfoList)) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<HotakeInitScreQuestionsReplyRecordInfo> screQuestionsReplyRecordInfoList = initScreQuestionsReplyRecordInfoMapper.selectHotakeInitScreQuestionsReplyRecordInfoList(new HotakeInitScreQuestionsReplyRecordInfo());
|
|
|
|
|
|
|
|
|
|
List<HotakeInitialScreeningQuestionsInfo> screeningQuestionsInfoList = initialScreeningQuestionsInfoMapper.selectHotakeInitialScreeningQuestionsInfoList(new HotakeInitialScreeningQuestionsInfo());
|
|
|
|
|
//查询岗位数据集合
|
|
|
|
|
HotakeRolesInfo query = new HotakeRolesInfo();
|
|
|
|
|
// query.setRecruiterId(SecurityUtils.getUserId());
|
|
|
|
|
@@ -118,11 +129,26 @@ public class HotakeRolesApplyInfoServiceImpl extends BaseServiceImpl implements
|
|
|
|
|
applyInfo.setCvInfoDto(cvInfoDto);
|
|
|
|
|
}
|
|
|
|
|
if(CollectionUtil.isNotEmpty(applyOperRecords)) {
|
|
|
|
|
List<HotakeRolesApplyOperRecord> operRecordList = applyOperRecords.stream().filter(e->e.getRoleApplyId().longValue() == applyInfo.getId().longValue()).toList();
|
|
|
|
|
List<HotakeRolesApplyOperRecord> operRecordList = applyOperRecords.stream().filter(e->e.getRoleApplyId()!= null &&
|
|
|
|
|
e.getRoleApplyId().longValue() == applyInfo.getId().longValue()).toList();
|
|
|
|
|
if(CollectionUtil.isNotEmpty(operRecordList)) {
|
|
|
|
|
applyInfo.setApplyOperRecords(operRecordList);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(CollectionUtil.isNotEmpty(screQuestionsReplyRecordInfoList)) {
|
|
|
|
|
List<HotakeInitScreQuestionsReplyRecordInfo> screQuestionsReplyRecordInfos = screQuestionsReplyRecordInfoList.stream().
|
|
|
|
|
filter(e->e.getRoleApplyId() != null && e.getRoleApplyId().longValue() == applyInfo.getId().longValue()).toList();
|
|
|
|
|
if(CollectionUtil.isNotEmpty(screQuestionsReplyRecordInfos)) {
|
|
|
|
|
for(HotakeInitScreQuestionsReplyRecordInfo recordInfo : screQuestionsReplyRecordInfos){
|
|
|
|
|
List<HotakeInitialScreeningQuestionsInfo> screeningQuestionsInfos = screeningQuestionsInfoList.stream().
|
|
|
|
|
filter(e->e.getId().longValue() == recordInfo.getQuestionId().longValue()).toList();
|
|
|
|
|
if(CollectionUtil.isNotEmpty(screeningQuestionsInfos)) {
|
|
|
|
|
recordInfo.setQuestionText(screeningQuestionsInfos.get(0).getQuestionTitle());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
applyInfo.setScreQuestionsReplyRecordInfoList(screQuestionsReplyRecordInfos);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return applyInfoList;
|
|
|
|
|
|