|
@@ -8,9 +8,11 @@
|
|
|
post.TrailMaxSalary,post.trailMinSalary,post.createUserID,post.createTime,post.modifyUserID,post.modifyTime,post.validTime,post.startTime,post.endTime,
|
|
|
post.contactName,post.contactMobile,post.contactEmail,
|
|
|
post.jobPlace,post.contactName,post.contactMobile,post.contactEmail,post.workNatureID,post.tagID,company.userName,company.userMobile,company.companyEmail,
|
|
|
- company.CompanyName,company.insuredCount,company.bonus,item.`Name` as cultureLevelName,work_nature.Name as workNatureName,
|
|
|
+ company.CompanyName,company.insuredCount,company.bonus,item.`Name` as cultureLevelName,work_nature.Name as
|
|
|
+ workNatureName,
|
|
|
post.ProfessionID,pro.ProfessionName,pro.parentProfessionID
|
|
|
, IFNULL(count(rmgt.RecommendMgtID),0) as recommendNum
|
|
|
+ , site.SiteID as siteID,inSites.InstitutionID as institutionID, company.RegionCode as regionCode
|
|
|
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'
|
|
@@ -18,6 +20,9 @@
|
|
|
work_nature.DictionaryCode='WorkNature'
|
|
|
left join pc_profession pro on post.ProfessionID = pro.ProfessionID
|
|
|
left join pc_recommend_mgt rmgt on post.PostID = rmgt.PostID
|
|
|
+ left join pc_site site on company.siteID = site.siteID
|
|
|
+ left join pc_site_institution inSites on site.SiteID = inSites.SiteID
|
|
|
+ left join pc_institution institution on inSites.institutionID = institution.InstitutionID
|
|
|
<where>
|
|
|
<if test="postIDList != '' and postIDList != null">
|
|
|
and post.postID in (${postIDList})
|
|
@@ -41,14 +46,16 @@
|
|
|
and post.CompanyID = #{companyID}
|
|
|
</if>
|
|
|
</where>
|
|
|
- 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,pro.parentProfessionID
|
|
|
order by post.CreateTime desc
|
|
|
</select>
|
|
|
+ <!-- selectPostList的分组
|
|
|
+ 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,pro.parentProfessionID
|
|
|
+ -->
|
|
|
<select id="selectRecommendPostList" resultType="com.hz.employmentsite.vo.companyService.RecommendPostVo">
|
|
|
select post.*,
|
|
|
recommend.recommendID,
|