更新:添加岗位匹配简历接口,补充工作经历,技能。
This commit is contained in:
@@ -68,5 +68,5 @@ public interface JobMapper extends BaseMapper<Job> {
|
|||||||
//删除岗位
|
//删除岗位
|
||||||
Long delRowWork();
|
Long delRowWork();
|
||||||
|
|
||||||
List<AppUser> getRecommendAppUser(@Param("jobId") Long jobId);
|
List<AppUser> getRecommendByJobId(@Param("jobId") Long jobId);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -105,6 +105,12 @@ public class JobServiceImpl extends ServiceImpl<JobMapper,Job> implements IJobSe
|
|||||||
@Autowired
|
@Autowired
|
||||||
private DataSource dataSource;
|
private DataSource dataSource;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private UserWorkExperiencesMapper userWorkExperiencesMapper;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private AppSkillMapper appSkillMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 应用启动后自动迁移:添加 is_urgent 列(幂等)
|
* 应用启动后自动迁移:添加 is_urgent 列(幂等)
|
||||||
*/
|
*/
|
||||||
@@ -1264,6 +1270,20 @@ public class JobServiceImpl extends ServiceImpl<JobMapper,Job> implements IJobSe
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<AppUser> getRecommendByJobId(Long jobId) {
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -368,7 +368,7 @@
|
|||||||
delete from row_work
|
delete from row_work
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<select id="getRecommendAppUser" resultType="com.ruoyi.common.core.domain.entity.AppUser">
|
<select id="getRecommendByJobId" resultType="com.ruoyi.common.core.domain.entity.AppUser">
|
||||||
SELECT
|
SELECT
|
||||||
*,
|
*,
|
||||||
CASE match_level
|
CASE match_level
|
||||||
|
|||||||
Reference in New Issue
Block a user