|
|
@@ -284,6 +284,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="userId !=null and userId !=''">
|
|
|
and r.user_id = #{userId}
|
|
|
</if>
|
|
|
+ <if test="status !=null">
|
|
|
+ and r.status = #{status}
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<select id="interviewUserId" parameterType="map" resultMap="RecruitInterviewUserVoResult">
|
|
|
@@ -313,4 +316,72 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
WHERE
|
|
|
user_id =#{userId}
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="queryListAppAll" parameterType="com.zhongzheng.modules.recruit.bo.RecruitInterviewQueryBo" resultMap="RecruitInterviewVoResult">
|
|
|
+ SELECT
|
|
|
+ u.realname,
|
|
|
+ n.job,
|
|
|
+ n.income_start,
|
|
|
+ n.income_end,
|
|
|
+ u.sex,
|
|
|
+ u.email as userEMall,
|
|
|
+ u.city,
|
|
|
+ u.district,
|
|
|
+ r.*,
|
|
|
+ n.city as company_city,
|
|
|
+ n.district as company_district,
|
|
|
+ n.province as company_province,
|
|
|
+ n.address as company_address
|
|
|
+ FROM
|
|
|
+ recruit_interview r
|
|
|
+ LEFT JOIN recruit_needs n ON r.needs_id = n.id
|
|
|
+ LEFT JOIN USER u ON u.user_id = r.user_id
|
|
|
+ LEFT JOIN v_tenant_company c ON c.company_id = n.company_id
|
|
|
+ where 1=1
|
|
|
+ <if test="job !=null">
|
|
|
+ and n.job = #{job}
|
|
|
+ </if>
|
|
|
+ <if test="status !=null">
|
|
|
+ and r.status = #{status}
|
|
|
+ </if>
|
|
|
+ <if test="workStart !=null and workEnd !=null and workEnd != '' and workStart!=''">
|
|
|
+ and (SELECT DATE_FORMAT(NOW(), '%Y') as `year`)-r.start_year BETWEEN #{workStart} and #{workEnd}
|
|
|
+ </if>
|
|
|
+ <if test="ageStart !=null and ageEnd !=null and ageEnd != '' and ageStart!=''">
|
|
|
+ and TIMESTAMPDIFF(YEAR,r.user_birth,CURDATE()) BETWEEN #{ageStart} and #{ageEnd}
|
|
|
+ </if>
|
|
|
+ <if test="eduLevel !=null and eduLevel!=''">
|
|
|
+ and r.edu_level = #{eduLevel}
|
|
|
+ </if>
|
|
|
+ <if test="completeness !=null and completeness!=''">
|
|
|
+ and r.completeness > #{completeness}
|
|
|
+ </if>
|
|
|
+ <if test="district !=null and district!=''">
|
|
|
+ and u.district = #{district}
|
|
|
+ </if>
|
|
|
+ <if test="province !=null and completeness!=''">
|
|
|
+ and u.province = #{province}
|
|
|
+ </if>
|
|
|
+ <if test="city !=null and city!=''">
|
|
|
+ and u.city = #{city}
|
|
|
+ </if>
|
|
|
+ <if test="houseProvince !=null and houseProvince!=''">
|
|
|
+ and u.house_province = #{houseProvince}
|
|
|
+ </if>
|
|
|
+ <if test="houseCity !=null and houseCity!=''">
|
|
|
+ and u.house_city = #{houseCity}
|
|
|
+ </if>
|
|
|
+ <if test="sex !=null and sex != ''">
|
|
|
+ and u.sex = #{sex}
|
|
|
+ </if>
|
|
|
+ <if test="marry !=null and marry !=''">
|
|
|
+ and u.marry = #{marry}
|
|
|
+ </if>
|
|
|
+ <if test="politic !=null and politic !=''">
|
|
|
+ and u.politic = #{politic}
|
|
|
+ </if>
|
|
|
+ <if test="userId !=null and userId !=''">
|
|
|
+ and r.user_id = #{userId}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
</mapper>
|