|
@@ -2,7 +2,10 @@
|
|
|
<!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.JobHuntID, jobHunt.JobUserID, jobHunt.ProfessionID, jobHunt.WorkCode, jobHunt.WorkName, jobHunt.AreaWork, jobHunt.InDate, jobHunt.WorkYear, jobHunt.JobHuntType, jobHunt.JobUserType, jobHunt.MinSalary, jobHunt.MaxSalary, jobHunt.CreateUserID, jobHunt.CreateTime, jobHunt.ModifyUserID, jobHunt.ModifyTime, jobHunt.OtherDemand
|
|
|
+ select jobHunt.JobHuntID, jobHunt.JobUserID, jobHunt.ProfessionID, jobHunt.WorkCode, jobHunt.WorkName,
|
|
|
+ jobHunt.AreaWork, jobHunt.InDate, jobHunt.WorkYear, jobHunt.JobHuntType, jobHunt.JobUserType, jobHunt.MinSalary,
|
|
|
+ jobHunt.MaxSalary, jobHunt.CreateUserID, jobHunt.CreateTime, jobHunt.ModifyUserID, jobHunt.ModifyTime,
|
|
|
+ jobHunt.OtherDemand
|
|
|
,jobUser.name as JobUserName,dic_jobUserType.Name as jobUserTypeStr,dic_huntJobType.Name as jobHuntTypeStr
|
|
|
,profession.ProfessionName, profession.ParentProfessionID, IFNULL(count(rmgt.RecommendMgtID),0) as recommendNum
|
|
|
,jobUser.cultureRank
|
|
@@ -10,8 +13,10 @@
|
|
|
left join pc_jobuser jobUser on jobHunt.JobUserID = jobUser.JobUserID
|
|
|
left join pc_profession profession on jobHunt.professionID = profession.professionID
|
|
|
left join pc_recommend_mgt rmgt on jobHunt.JobHuntID = rmgt.JobHuntID
|
|
|
- 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
|
|
|
+ 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 jobHunt.JobHuntID in (${jobHuntIDList})
|
|
@@ -37,20 +42,23 @@
|
|
|
<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 test="minSalary != '' and minSalary != null and (maxSalary == '' or maxSalary == null)">
|
|
|
+ and jobHunt.minSalary <![CDATA[ >= ]]> #{minSalary}
|
|
|
</if>
|
|
|
<if test="maxSalary != '' and maxSalary != null and (minSalary == '' or minSalary == null)">
|
|
|
- and jobHunt.minSalary <![CDATA[ <= ]]> #{maxSalary} and jobHunt.maxSalary <![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})
|
|
|
+ and
|
|
|
+ (jobHunt.minSalary <![CDATA[ >= ]]> #{minSalary} and jobHunt.maxSalary <![CDATA[ <= ]]> #{maxSalary})
|
|
|
</if>
|
|
|
- <!-- <if test="isAccomplish != '' and isAccomplish != null">
|
|
|
- and isAccomplish = #{isAccomplish}
|
|
|
- </if>-->
|
|
|
- group by jobHunt.JobHuntID, jobHunt.JobUserID, jobHunt.ProfessionID, jobHunt.WorkCode, jobHunt.WorkName, jobHunt.AreaWork, jobHunt.InDate, jobHunt.WorkYear, jobHunt.JobHuntType, jobHunt.JobUserType, jobHunt.MinSalary, jobHunt.MaxSalary, jobHunt.CreateUserID, jobHunt.CreateTime, jobHunt.ModifyUserID, jobHunt.ModifyTime, jobHunt.OtherDemand
|
|
|
+ <if test="isAccomplish != '' and isAccomplish != null">
|
|
|
+ and rmgt.EntryState = #{isAccomplish}
|
|
|
+ </if>
|
|
|
+ group by jobHunt.JobHuntID, jobHunt.JobUserID, jobHunt.ProfessionID, jobHunt.WorkCode, jobHunt.WorkName,
|
|
|
+ jobHunt.AreaWork, jobHunt.InDate, jobHunt.WorkYear, jobHunt.JobHuntType, jobHunt.JobUserType, jobHunt.MinSalary,
|
|
|
+ jobHunt.MaxSalary, jobHunt.CreateUserID, jobHunt.CreateTime, jobHunt.ModifyUserID, jobHunt.ModifyTime,
|
|
|
+ jobHunt.OtherDemand
|
|
|
,jobUser.`Name`,dic_jobUserType.`Name`,dic_huntJobType.`Name`, profession.ProfessionName, profession.ParentProfessionID,jobUser.cultureRank
|
|
|
order by jobHunt.CreateTime desc
|
|
|
</select>
|