Compare commits

...

2 Commits

Author SHA1 Message Date
chenshaohua
45d8494a40 添加条件—企业或者管理员搜索简历信息 2026-07-21 19:34:23 +08:00
chenshaohua
9d3c664361 添加条件—企业或者管理员搜索简历信息 2026-07-21 19:33:58 +08:00
2 changed files with 33 additions and 0 deletions

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>

View File

@@ -194,4 +194,16 @@ public class AppUser extends BaseEntity
/** 投递申请ID推荐简历关联查询时填充非app_user表字段 */ /** 投递申请ID推荐简历关联查询时填充非app_user表字段 */
@TableField(exist = false) @TableField(exist = false)
private Long applyId; private Long applyId;
/**简历更新时间,企业查询求职者使用*/
@TableField(exist = false)
private String finishTime;
@TableField(exist = false)
@ApiModelProperty("学校名称")
private String schoolName;
@TableField(exist = false)
@ApiModelProperty("毕业时间")
private String endTime;
} }