|
|
@@ -32,7 +32,44 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="jobNature" column="job_nature"/>
|
|
|
<result property="bonusCertificate" column="bonus_certificate"/>
|
|
|
<result property="isUrgent" column="is_urgent"/>
|
|
|
+ <result property="minimumEduLabel" column="minimum_edu_label"/>
|
|
|
+ <result property="workingYearsLabel" column="working_years_label"/>
|
|
|
+ <result property="companyName" column="company_name"/>
|
|
|
</resultMap>
|
|
|
|
|
|
+ <select id="queryRecruitNeedsList" parameterType="com.zhongzheng.modules.recruit.bo.RecruitNeedsQueryBo" resultMap="RecruitNeedsResult">
|
|
|
+ SELECT
|
|
|
+ rn.*,
|
|
|
+ dd.dict_label AS minimum_edu_label,
|
|
|
+ dd1.dict_label AS working_years_label,
|
|
|
+ vtc.company_name
|
|
|
+ FROM
|
|
|
+ recruit_needs rn
|
|
|
+ LEFT JOIN sys_dict_data dd ON rn.minimum_edu_dict = dd.dict_code
|
|
|
+ LEFT JOIN sys_dict_data dd1 ON rn.working_years_dict = dd1.dict_code
|
|
|
+ LEFT JOIN v_tenant_company vtc ON rn.company_id = vtc.company_id
|
|
|
+ WHERE
|
|
|
+ 1 = 1
|
|
|
+ <if test="job != null and job != ''">
|
|
|
+ AND rn.job like concat('%', #{job}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="companyName != null and companyName != ''">
|
|
|
+ AND vtc.company_name like concat('%', #{companyName}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="status != null and status.size()!=0 ">
|
|
|
+ AND rn.status in
|
|
|
+ <foreach collection="status" item="item" index="index" open="(" close=")" separator=",">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
+ <if test="pushTimeStart != null and pushTimeStart != ''">
|
|
|
+ AND rn.push_time > #{pushTimeStart}
|
|
|
+ </if>
|
|
|
+ <if test="pushTimeEnd != null and pushTimeEnd != ''">
|
|
|
+ AND #{pushTimeEnd} > rn.push_time
|
|
|
+ </if>
|
|
|
+ ORDER BY
|
|
|
+ rn.id DESC
|
|
|
+ </select>
|
|
|
|
|
|
</mapper>
|