1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?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.PostCQuery">
- <select id="selectPostList" resultType="com.hz.employmentsite.vo.companyService.PostVo">
- select post.postID,post.workCode,post.workName,post.recruitCount,post.companyID,post.postName,post.recordStatus,post.workNature,post.validDay,
- post.workYear,post.cultureRank,post.postDesc,post.maxSalary,post.minSalary,post.welfare,post.postEmail,post.workTime,post.isTrail,post.trailMonths,
- post.TrailMaxSalary,post.trailMinSalary,post.createUserID,post.createTime,post.modifyUserID,post.modifyTime,post.validTime,post.startTime,post.endTime,
- post.jobPlace,company.userName,company.userMobile,company.companyEmail,company.CompanyName,company.insuredCount,item.`Name` as cultureLevelName from pc_post post
- left join pc_company company on post.CompanyID = company.CompanyID
- left join sys_dictionary_item item on item.value=post.CultureRank and item.DictionaryCode='CultureLevel'
- where 1=1
- <if test="postIDList != '' and postIDList != null">
- and post.postID in (${postIDList})
- </if>
- <if test="postName != '' and postName != null">
- and post.postName like Concat('%',#{postName},'%')
- </if>
- <if test="minCount != null and minCount != ''">
- and post.RecruitCount <![CDATA[ >= ]]> #{minCount}
- </if>
- <if test="maxCount != null and maxCount != ''">
- and post.RecruitCount <![CDATA[ <= ]]> #{maxCount}
- </if>
- <if test="companyName != null and companyName != ''">
- and company.CompanyName like Concat('%',#{companyName},'%')
- </if>
- <if test="RecordStatus != null and RecordStatus != ''">
- and post.RecordStatus = #{RecordStatus}
- </if>
- <if test="WorkName != null and WorkName != ''">
- and post.WorkName like Concat('%', #{WorkName},'%')
- </if>
- <if test="companyID != null and companyID != ''">
- and post.CompanyID = #{companyID}
- </if>
- order by post.CreateTime desc
- </select>
- <select id="selectRecommendPostList" resultType="com.hz.employmentsite.vo.companyService.RecommendPostVo">
- select post.*,recommend.recommendID,jobhunt.JobUserID,recommend.isRead,recommend.isSendNotes,company.CompanyName,company.InsuredCount from
- (select * from pc_post where PostID in (select PostID from pc_jobhunt where JobUserID= #{jobUserID})) post
- left join pc_company company on post.CompanyID = company.CompanyID
- left join (select * from pc_recommend where JobUserID= #{jobUserID}) recommend on post.PostID = recommend.PostID
- left join pc_jobhunt jobhunt on post.PostID = jobhunt.PostID
- where jobhunt.JobUserID = #{jobUserID}
- order by post.CreateTime desc
- </select>
- </mapper>
|