优化逻辑完善,接口补充
This commit is contained in:
@@ -143,4 +143,15 @@ public class HotakeRolesApplyInfoController extends BaseController
|
||||
HotakeRolesApplyStageStatisticalDto info = hotakeRolesApplyInfoService.handleHotakeRolesApplyStageStatistical(hotakeRolesApplyInfo);
|
||||
return R.ok(info,"");
|
||||
}
|
||||
|
||||
/**
|
||||
* 候选人面试综合评估
|
||||
*/
|
||||
@ApiOperation("候选人面试综合评估")
|
||||
@PostMapping("/candidateInterviewEvaluation")
|
||||
public R<HotakeRolesApplyInfo> getCandidateInterviewEvaluation(@RequestBody HotakeRolesApplyInfo hotakeRolesApplyInfo)
|
||||
{
|
||||
HotakeRolesApplyInfo info = hotakeRolesApplyInfoService.handleCandidateInterviewEvaluation(hotakeRolesApplyInfo);
|
||||
return R.ok(info,"");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ import com.vetti.web.service.IHotakeCommonService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.Base64Utils;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.stream.Collectors;
|
||||
@@ -73,4 +74,12 @@ public class HotakeCommonServiceImpl implements IHotakeCommonService {
|
||||
dataDto.setVisibilityIncreaseNum(32);
|
||||
return dataDto;
|
||||
}
|
||||
|
||||
// public static void main(String[] args){
|
||||
// String str = "roleId=139&roleApplyId=21&userName=aioteam@qq.com&userType=candidate&token=";
|
||||
// String base64 = Base64Utils.encodeToString(str.getBytes());
|
||||
// System.out.println(base64);
|
||||
//
|
||||
//
|
||||
// }
|
||||
}
|
||||
|
||||
@@ -191,6 +191,7 @@ chatGpt:
|
||||
modelAiIntPf: gpt-4o-mini
|
||||
modelAiCvSr: gpt-4o-mini
|
||||
modelAiCac: gpt-4o-mini
|
||||
modelAiCiv: gpt-4o-mini
|
||||
role: system
|
||||
|
||||
http:
|
||||
|
||||
@@ -43,6 +43,14 @@ public interface HotakeRolesApplyInfoMapper
|
||||
*/
|
||||
public List<HotakeRolesApplyInfo> selectHotakeRolesApplyInfoCompatibilityScoreList(HotakeRolesApplyInfo hotakeRolesApplyInfo);
|
||||
|
||||
/**
|
||||
* 查询候选人岗位申请信息列表
|
||||
*
|
||||
* @param hotakeRolesApplyInfo 候选人岗位申请信息
|
||||
* @return 候选人岗位申请信息集合
|
||||
*/
|
||||
public List<HotakeRolesApplyInfo> selectHotakeRolesApplyInfoCompatibilityScoreOneList(HotakeRolesApplyInfo hotakeRolesApplyInfo);
|
||||
|
||||
/**
|
||||
* 新增候选人岗位申请信息
|
||||
*
|
||||
|
||||
@@ -101,4 +101,12 @@ public interface IHotakeRolesApplyInfoService
|
||||
*/
|
||||
public HotakeRolesApplyStageStatisticalDto handleHotakeRolesApplyStageStatistical(HotakeRolesApplyInfo hotakeRolesApplyInfo);
|
||||
|
||||
/**
|
||||
* 候选人面试综合评估
|
||||
*
|
||||
* @param hotakeRolesApplyInfo 候选人岗位申请信息
|
||||
* @return 候选人岗位申请信息集合
|
||||
*/
|
||||
public HotakeRolesApplyInfo handleCandidateInterviewEvaluation(HotakeRolesApplyInfo hotakeRolesApplyInfo);
|
||||
|
||||
}
|
||||
|
||||
@@ -11,10 +11,7 @@ import com.vetti.common.enums.StageEnum;
|
||||
import com.vetti.common.exception.ServiceException;
|
||||
import com.vetti.common.utils.SecurityUtils;
|
||||
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.*;
|
||||
import com.vetti.hotake.domain.dto.VcDto.*;
|
||||
import com.vetti.hotake.domain.vo.HotakeRolesApplyStageVo;
|
||||
import com.vetti.hotake.mapper.HotakeInitScreQuestionsReplyRecordInfoMapper;
|
||||
@@ -548,4 +545,37 @@ public class HotakeRolesApplyInfoServiceImpl extends BaseServiceImpl implements
|
||||
return dto;
|
||||
}
|
||||
|
||||
/**
|
||||
* 候选人面试综合评估
|
||||
* @param hotakeRolesApplyInfo 候选人岗位申请信息
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public HotakeRolesApplyInfo handleCandidateInterviewEvaluation(HotakeRolesApplyInfo hotakeRolesApplyInfo) {
|
||||
if(CollectionUtil.isEmpty(hotakeRolesApplyInfo.getApplyRoleIdList())){
|
||||
throw new ServiceException("Please select at least one piece of business data");
|
||||
}
|
||||
List<HotakeRolesApplyInfo> applyInfoList = hotakeRolesApplyInfoMapper.selectHotakeRolesApplyInfoCompatibilityScoreOneList(hotakeRolesApplyInfo);
|
||||
if(CollectionUtil.isNotEmpty(applyInfoList)) {
|
||||
|
||||
HotakeRolesApplyInfo applyInfo = applyInfoList.get(0);
|
||||
if(StrUtil.isNotEmpty(applyInfo.getEvaluationJson())){
|
||||
HotakeCandidateInterviewEvaluationDto evaluationDto = JSONUtil.toBean(applyInfo.getEvaluationJson(), HotakeCandidateInterviewEvaluationDto.class);
|
||||
applyInfo.setEvaluationDto(evaluationDto);
|
||||
}
|
||||
HotakeRolesInfo rolesInfo = hotakeRolesInfoMapper.selectHotakeRolesInfoById(applyInfo.getRoleId());
|
||||
applyInfo.setRolesInfo(rolesInfo);
|
||||
|
||||
SysUser user = userService.selectUserById(applyInfo.getCandidateId());
|
||||
applyInfo.setCandidateUSer(user);
|
||||
if(StrUtil.isNotEmpty(applyInfo.getCandidateCompatibilityJson())){
|
||||
HotakeCandidateCompatibilityDto compatibilityDto = JSONUtil.toBean(applyInfo.getCandidateCompatibilityJson(), HotakeCandidateCompatibilityDto.class);
|
||||
applyInfo.setCompatibilityDto(compatibilityDto);
|
||||
}
|
||||
return applyInfo;
|
||||
}
|
||||
return new HotakeRolesApplyInfo();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -151,6 +151,42 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</where>
|
||||
order by candidate_compatibility_score DESC
|
||||
</select>
|
||||
|
||||
|
||||
<select id="selectHotakeRolesApplyInfoCompatibilityScoreOneList" parameterType="HotakeRolesApplyInfo" resultMap="HotakeRolesApplyInfoResult">
|
||||
<include refid="selectHotakeRolesApplyInfoVo"/>
|
||||
<where>
|
||||
<if test="candidateId != null "> and candidate_id = #{candidateId}</if>
|
||||
<if test="recruiterId != null "> and recruiter_id = #{recruiterId}</if>
|
||||
<if test="roleId != null "> and role_id = #{roleId}</if>
|
||||
<if test="fullName != null and fullName != ''"> and full_name like concat('%', #{fullName}, '%')</if>
|
||||
<if test="email != null and email != ''"> and email = #{email}</if>
|
||||
<if test="phoneNumber != null and phoneNumber != ''"> and phone_number = #{phoneNumber}</if>
|
||||
<if test="cvFile != null and cvFile != ''"> and cv_file = #{cvFile}</if>
|
||||
<if test="cvFileSuffix != null and cvFileSuffix != ''"> and cv_file_suffix = #{cvFileSuffix}</if>
|
||||
|
||||
<if test="coverLetter != null and coverLetter != ''"> and cover_letter = #{coverLetter}</if>
|
||||
<if test="candidateStatus != null and candidateStatus != ''"> and candidate_status = #{candidateStatus}</if>
|
||||
<if test="stage != null and stage != ''"> and stage = #{stage}</if>
|
||||
<if test="lastContact != null and lastContact != ''"> and last_contact = #{lastContact}</if>
|
||||
<if test="cvTemplateJson != null and cvTemplateJson != ''"> and cv_template_json = #{cvTemplateJson}</if>
|
||||
<if test="cvScore != null and cvScore != ''"> and cv_score = #{cvScore}</if>
|
||||
<if test="cvMd5 != null and cvMd5 != ''"> and cv_md5 = #{cvMd5}</if>
|
||||
<if test="experience != null and experience != ''"> and experience = #{experience}</if>
|
||||
<if test="aiMatchScore != null and aiMatchScore != ''"> and ai_match_score = #{aiMatchScore}</if>
|
||||
<if test="aiMatchScorePercentage != null "> and ai_match_score_percentage = #{aiMatchScorePercentage}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
|
||||
<if test="applyRoleIdList != null ">
|
||||
and id in
|
||||
<foreach item="applyRoleId" collection="applyRoleIdList" open="(" separator="," close=")">
|
||||
#{applyRoleId}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
</where>
|
||||
order by evaluation_score DESC
|
||||
</select>
|
||||
|
||||
<select id="selectHotakeRolesApplyInfoById" parameterType="Long" resultMap="HotakeRolesApplyInfoResult">
|
||||
<include refid="selectHotakeRolesApplyInfoVo"/>
|
||||
|
||||
Reference in New Issue
Block a user