添加条件—企业或者管理员搜索简历信息

This commit is contained in:
chenshaohua
2026-07-21 19:33:58 +08:00
parent bb56e067a1
commit 9d3c664361

View File

@@ -143,6 +143,11 @@
) latest_ii on latest_ii.user_id = a.user_id ) latest_ii on latest_ii.user_id = a.user_id
and latest_ii.job_id = a.job_id and latest_ii.job_id = a.job_id
and latest_ii.del_flag = '0' and latest_ii.del_flag = '0'
LEFT JOIN (
SELECT
user_id, MAX(school_name) AS school_name, MAX(end_time) AS end_time
FROM app_user_education WHERE del_flag = '0' GROUP BY user_id
) edu ON e.user_id = edu.user_id
where a.del_flag='0' where a.del_flag='0'
<!-- 求职者用户名搜索 --> <!-- 求职者用户名搜索 -->
<if test="name != null and name != ''"> and e.name like concat('%', cast(#{name, jdbcType=VARCHAR} as varchar), '%')</if> <if test="name != null and name != ''"> and e.name like concat('%', cast(#{name, jdbcType=VARCHAR} as varchar), '%')</if>
@@ -150,16 +155,32 @@
<if test="phone != null and phone != ''"> and e.phone like concat('%', cast(#{phone, jdbcType=VARCHAR} as varchar), '%')</if> <if test="phone != null and phone != ''"> and e.phone like concat('%', cast(#{phone, jdbcType=VARCHAR} as varchar), '%')</if>
<!-- 学历筛选 --> <!-- 学历筛选 -->
<if test="education != null and education != ''"> and e.education = #{education}</if> <if test="education != null and education != ''"> and e.education = #{education}</if>
<!-- 工作经验筛选 -->
<if test="workExperience != null and workExperience != ''"> and e.work_experience = #{workExperience}</if>
<!-- 求职者时间筛选 -->
<if test="finishTime != null and finishTime != ''"> and e.update_time &gt;= #{finishTime}</if>
<!-- 性别筛选 --> <!-- 性别筛选 -->
<if test="sex != null and sex != ''"> and e.sex = #{sex}</if> <if test="sex != null and sex != ''"> and e.sex = #{sex}</if>
<!-- 民族筛选 -->
<if test="nation != null and nation != ''"> and e.nation = #{nation}</if>
<!-- 人员标签筛选 -->
<if test="userType != null and userType != ''"> and e.user_type like concat('%', cast(#{userType, jdbcType=VARCHAR} as varchar), '%')</if>
<!-- 求职期望筛选 -->
<if test="jobTitleId != null and jobTitleId != ''"> and e.job_title_id like concat('%', cast(#{jobTitleId, jdbcType=VARCHAR} as varchar), '%')</if>
<!-- 区域筛选 --> <!-- 区域筛选 -->
<if test="area != null and area != ''"> and e.area = #{area}</if> <if test="area != null and area != ''"> and e.area = #{area}</if>
<!-- 年龄筛选 -->
<if test="age != null and age != ''"> and get_age_from_id_card(e.id_card) = #{age}</if>
<!-- 政治面貌筛选 --> <!-- 政治面貌筛选 -->
<if test="politicalAffiliation != null and politicalAffiliation != ''"> and e.political_affiliation = #{politicalAffiliation}</if> <if test="politicalAffiliation != null and politicalAffiliation != ''"> and e.political_affiliation = #{politicalAffiliation}</if>
<!-- 身份证搜索 --> <!-- 身份证搜索 -->
<if test="idCard != null and idCard != ''"> and e.id_card like concat('%', cast(#{idCard, jdbcType=VARCHAR} as varchar), '%')</if> <if test="idCard != null and idCard != ''"> and e.id_card like concat('%', cast(#{idCard, jdbcType=VARCHAR} as varchar), '%')</if>
<!-- 出生日期筛选 --> <!-- 出生日期筛选 -->
<if test="birthDate != null and birthDate != ''"> and e.birth_date = #{birthDate}</if> <if test="birthDate != null and birthDate != ''"> and e.birth_date = #{birthDate}</if>
<!-- 学校筛选筛选 -->
<if test="schoolName != null and schoolName != ''"> and edu.school_name = #{schoolName}</if>
<!-- 毕业时间筛选筛选 -->
<if test="endTime != null and endTime != ''"> and edu.end_time = #{endTime}</if>
<!-- 职位名称搜索 --> <!-- 职位名称搜索 -->
<if test="jobName != null and jobName != ''"> and b.job_title like concat('%', cast(#{jobName, jdbcType=VARCHAR} as varchar), '%')</if> <if test="jobName != null and jobName != ''"> and b.job_title like concat('%', cast(#{jobName, jdbcType=VARCHAR} as varchar), '%')</if>
</select> </select>