|
|
@@ -253,4 +253,54 @@ id_,company_id,title_,area_,address_,position_,position_message,requirements_,po
|
|
|
${sort.name} ${sort.order}
|
|
|
</foreach>
|
|
|
</select>
|
|
|
+
|
|
|
+ <!--招聘方职位管理-->
|
|
|
+ <select id="loadForRecruiter" parameterType="hashMap" resultType="Map">
|
|
|
+ <![CDATA[
|
|
|
+ SELECT * FROM (
|
|
|
+ SELECT
|
|
|
+ jr.del_flag,
|
|
|
+ jr.create_by,
|
|
|
+ jr.update_time updateTime,
|
|
|
+ jr.status_ status,
|
|
|
+ jr.approve_status approveStatus,
|
|
|
+ jr.title_ title,
|
|
|
+ jwc.name_ position_name,
|
|
|
+ waged.name_ wageTypeName,
|
|
|
+ educationd.name_ educationName,
|
|
|
+ workyeard.name_ workYear
|
|
|
+ FROM
|
|
|
+ job_recruitment jr
|
|
|
+ INNER JOIN job_work_category jwc ON jr.position_ = jwc.id_ and jwc.del_flag=0
|
|
|
+ left join sys_data_dictionary waged on jr.wage_type=waged.id_ and waged.del_flag=0
|
|
|
+ left join sys_data_dictionary workyeard on jr.work_year=workyeard.id_ and workyeard.del_flag=0
|
|
|
+ left join sys_data_dictionary educationd on jr.education_=educationd.id_ and educationd.del_flag=0
|
|
|
+ ) TAB
|
|
|
+ ]]>
|
|
|
+ <where>
|
|
|
+ <if test="1==1">
|
|
|
+ and del_flag=0
|
|
|
+ </if>
|
|
|
+ <if test="searchParams.recruiter != null"> <!--按创建人(招聘人)过滤-->
|
|
|
+ and create_by=#{searchParams.recruiter}
|
|
|
+ </if>
|
|
|
+ <if test='searchParams.status =="publish"'> <!--按招聘状态过滤publish:已发布且审核完;approve:审核中;close:关闭下架-->
|
|
|
+ and status='1' and approveStatus='94905388-a409-4096-a842-5128823250c5'
|
|
|
+ </if>
|
|
|
+ <if test='searchParams.status =="approve"'>
|
|
|
+ and status='1' and approveStatus='eeba3cbf-80b3-4db9-a9e6-695f00c087b5'
|
|
|
+ </if>
|
|
|
+ <if test='searchParams.status =="close"'>
|
|
|
+ and status='0'
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ <foreach item="sort" collection="sortList" open="order by" separator=",">
|
|
|
+ ${sort.name} ${sort.order}
|
|
|
+ </foreach>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <!--招聘方个人中心主页:统计已发布的招聘,被浏览量(不包含已撤销的(已关闭的))-->
|
|
|
+ <select id="rptMyRecruitmentCount" parameterType="String" resultType="Map">
|
|
|
+ select count(1) recCount,sum(reading_times) readTimes from job_recruitment where create_by=#{0} and status_='open'
|
|
|
+ </select>
|
|
|
</mapper>
|