面试功能开发
This commit is contained in:
@@ -42,10 +42,26 @@
|
||||
ORDER BY ja.create_time DESC
|
||||
</select>
|
||||
<select id="candidates" resultType="com.ruoyi.cms.domain.vo.CandidateVO">
|
||||
SELECT au.*,jc.create_time as apply_date,jc.matching_degree,jc.id as applyId
|
||||
SELECT au.*, jc.create_time as apply_date, jc.matching_degree, jc.id as applyId,
|
||||
latest_ii.status as interviewStatus, latest_ii.id as interviewId
|
||||
from job_apply as jc
|
||||
inner join app_user as au on jc.user_id = au.user_id
|
||||
left join (
|
||||
select ii1.*
|
||||
from interview_invitation ii1
|
||||
inner join (
|
||||
select user_id, job_id, max(create_time) as max_ct
|
||||
from interview_invitation
|
||||
where del_flag = '0'
|
||||
group by user_id, job_id
|
||||
) ii2 on ii1.user_id = ii2.user_id
|
||||
and ii1.job_id = ii2.job_id
|
||||
and ii1.create_time = ii2.max_ct
|
||||
) latest_ii on latest_ii.user_id = jc.user_id
|
||||
and latest_ii.job_id = jc.job_id
|
||||
and latest_ii.del_flag = '0'
|
||||
where jc.job_id = #{jobId} and jc.del_flag = '0' and au.del_flag ='0'
|
||||
order by jc.create_time desc
|
||||
</select>
|
||||
|
||||
<select id="trendChart" resultType="java.util.HashMap" parameterType="JobApply">
|
||||
@@ -104,10 +120,26 @@
|
||||
</select>
|
||||
|
||||
<select id="selectApplyJobUserList" parameterType="com.ruoyi.common.core.domain.entity.AppUser" resultType="com.ruoyi.cms.domain.vo.CandidateVO">
|
||||
select a.id applyId, a.hire, b.job_title jobName,l.name companyName,e.* from job_apply a
|
||||
select a.id applyId, a.hire, b.job_title jobName, l.name companyName, e.*,
|
||||
latest_ii.status as interviewStatus, latest_ii.id as interviewId
|
||||
from job_apply a
|
||||
INNER join job b on a.job_id=b.job_id and b.del_flag='0'
|
||||
INNER join app_user e on a.user_id =e.user_id and e.del_flag='0'
|
||||
INNER join company l on b.company_id =l.company_id and l.del_flag='0'
|
||||
left join (
|
||||
select ii1.*
|
||||
from interview_invitation ii1
|
||||
inner join (
|
||||
select user_id, job_id, max(create_time) as max_ct
|
||||
from interview_invitation
|
||||
where del_flag = '0'
|
||||
group by user_id, job_id
|
||||
) ii2 on ii1.user_id = ii2.user_id
|
||||
and ii1.job_id = ii2.job_id
|
||||
and ii1.create_time = ii2.max_ct
|
||||
) latest_ii on latest_ii.user_id = a.user_id
|
||||
and latest_ii.job_id = a.job_id
|
||||
and latest_ii.del_flag = '0'
|
||||
where a.del_flag='0'
|
||||
<if test="company != null and company.jobTitle != null and company.jobTitle != ''"> and b.job_title like concat('%', cast(#{company.jobTitle, jdbcType=VARCHAR} as varchar), '%')</if>
|
||||
<if test="company != null and company.education != null and company.education != ''"> and b.education = #{company.education}</if>
|
||||
|
||||
Reference in New Issue
Block a user