更新:添加岗位匹配简历接口,补充工作经历,技能。

This commit is contained in:
chenyanchang
2026-06-27 12:48:54 +08:00
parent 803e8f3fcc
commit ba2f73d3b8
3 changed files with 23 additions and 3 deletions

View File

@@ -68,5 +68,5 @@ public interface JobMapper extends BaseMapper<Job> {
//删除岗位
Long delRowWork();
List<AppUser> getRecommendAppUser(@Param("jobId") Long jobId);
List<AppUser> getRecommendByJobId(@Param("jobId") Long jobId);
}

View File

@@ -105,6 +105,12 @@ public class JobServiceImpl extends ServiceImpl<JobMapper,Job> implements IJobSe
@Autowired
private DataSource dataSource;
@Autowired
private UserWorkExperiencesMapper userWorkExperiencesMapper;
@Autowired
private AppSkillMapper appSkillMapper;
/**
* 应用启动后自动迁移:添加 is_urgent 列(幂等)
*/
@@ -1264,6 +1270,20 @@ public class JobServiceImpl extends ServiceImpl<JobMapper,Job> implements IJobSe
@Override
public List<AppUser> getRecommendByJobId(Long jobId) {
return jobMapper.getRecommendAppUser(jobId);
List<AppUser> list = jobMapper.getRecommendByJobId(jobId);
if (CollectionUtils.isNotEmpty(list)) {
list.forEach(appUser -> {
UserWorkExperiences workExperiences = new UserWorkExperiences();
workExperiences.setUserId(appUser.getUserId());
List<UserWorkExperiences> experiences = userWorkExperiencesMapper.getWorkExperiencesList(workExperiences);
appUser.setExperiencesList(experiences);
AppSkill skill = new AppSkill();
skill.setUserId(appUser.getUserId());
List<AppSkill> skillList = appSkillMapper.getList(skill);
appUser.setAppSkillsList(skillList);
});
}
return list;
}
}

View File

@@ -368,7 +368,7 @@
delete from row_work
</delete>
<select id="getRecommendAppUser" resultType="com.ruoyi.common.core.domain.entity.AppUser">
<select id="getRecommendByJobId" resultType="com.ruoyi.common.core.domain.entity.AppUser">
SELECT
*,
CASE match_level