|
@@ -3,15 +3,16 @@
|
|
|
<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,
|
|
|
- post.ProfessionID,pro.ProfessionName
|
|
|
+ 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,
|
|
|
+ post.ProfessionID,pro.ProfessionName
|
|
|
+ , IFNULL(count(rmgt.RecommendMgtID),0) as recommendNum
|
|
|
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'
|
|
|
left join pc_profession pro on post.ProfessionID = pro.ProfessionID
|
|
|
- where 1=1
|
|
|
+ left join pc_recommend_mgt rmgt on post.PostID = rmgt.PostID
|
|
|
<if test="postIDList != '' and postIDList != null">
|
|
|
and post.postID in (${postIDList})
|
|
|
</if>
|
|
@@ -36,7 +37,12 @@
|
|
|
<if test="companyID != null and companyID != ''">
|
|
|
and post.CompanyID = #{companyID}
|
|
|
</if>
|
|
|
- order by post.CreateTime desc
|
|
|
+ group by 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`,
|
|
|
+ post.ProfessionID,pro.ProfessionName
|
|
|
+ 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
|