123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
- <mapper namespace="com.hz.employmentsite.mapper.cquery.JobHuntCQuery">
- <select id="getJobHuntList" resultType="com.hz.employmentsite.vo.jobUserManager.JobHuntVo">
- select jobHunt.*,jobUser.name as JobUserName,dic_jobUserType.Name as jobUserTypeStr,dic_huntJobType.Name as jobHuntTypeStr,
- profession.ProfessionName from pc_jobhunt jobHunt
- left join pc_jobuser jobUser on jobHunt.JobUserID = jobUser.JobUserID
- left join pc_profession profession on jobHunt.professionID = profession.professionID
- left join (select * from sys_dictionary_item where DictionaryCode ='JobUserType') dic_jobUserType on jobHunt.JobUserType = dic_jobUserType.value
- left join (select * from sys_dictionary_item where DictionaryCode ='JobHuntType') dic_huntJobType on jobHunt.JobHuntType = dic_huntJobType.value
- where 1=1
- <if test="jobHuntIDList != '' and jobHuntIDList != null">
- and jobHuntId in (${jobHuntIDList})
- </if>
- <if test="jobUserID != '' and jobUserID != null">
- and jobHunt.jobUserID = #{jobUserID}
- </if>
- <if test="jobUserName != '' and jobUserName != null">
- and jobUser.name like Concat('%',#{jobUserName},'%')
- </if>
- <if test="workName != '' and workName != null">
- and jobHunt.workName like Concat('%',#{workName},'%')
- </if>
- <if test="minWorkYear != '' and minWorkYear != null">
- and jobHunt.workYear <![CDATA[ >= ]]> #{minWorkYear}
- </if>
- <if test="maxWorkYear != '' and maxWorkYear != null">
- and jobHunt.workYear <![CDATA[ <= ]]> #{maxWorkYear}
- </if>
- <if test="jobHuntTypeID != '' and jobHuntTypeID != null">
- and jobHuntType = #{jobHuntTypeID}
- </if>
- <if test="jobUserTypeID != '' and jobUserTypeID != null">
- and jobUserType = #{jobUserTypeID}
- </if>
- <if test="minSalary != '' and minSalary != null and (maxSalary == '' or maxSalary == null)" >
- and jobHunt.minSalary <![CDATA[ >= ]]> #{minSalary} and jobHunt.maxSalary <![CDATA[ >= ]]> #{minSalary}
- </if>
- <if test="maxSalary != '' and maxSalary != null and (minSalary == '' or minSalary == null)">
- and jobHunt.minSalary <![CDATA[ <= ]]> #{maxSalary} and jobHunt.maxSalary <![CDATA[ >= ]]> #{maxSalary}
- </if>
- <if test="minSalary != '' and minSalary != null and maxSalary != '' and maxSalary != null">
- and (jobHunt.minSalary <![CDATA[ <= ]]> #{maxSalary})
- or (jobHunt.minSalary <![CDATA[ <= ]]> #{minSalary} and jobHunt.maxSalary <![CDATA[ >= ]]> #{minSalary})
- </if>
- <!-- <if test="isAccomplish != '' and isAccomplish != null">
- and isAccomplish = #{isAccomplish}
- </if>-->
- order by jobHunt.CreateTime desc
- </select>
- </mapper>
|