|
|
@@ -5,35 +5,33 @@
|
|
|
<mapper namespace="com.jpsoft.employment.modules.job.dao.RecruitmentDAO">
|
|
|
<resultMap id="RecruitmentMap" type="com.jpsoft.employment.modules.job.entity.Recruitment">
|
|
|
<id property="id" column="id_" />
|
|
|
- <result property="companyId" column="company_id" />
|
|
|
- <result property="title" column="title_" />
|
|
|
- <result property="area" column="area_" />
|
|
|
- <result property="address" column="address_" />
|
|
|
- <result property="position" column="position_" />
|
|
|
- <result property="positionMessage" column="position_message" />
|
|
|
- <result property="requirements" column="requirements_" />
|
|
|
- <result property="positionNumber" column="position_number" />
|
|
|
- <result property="workYear" column="work_year" />
|
|
|
- <result property="education" column="education_" />
|
|
|
- <result property="positionSex" column="position_sex" />
|
|
|
- <result property="readTimes" column="read_times" />
|
|
|
- <result property="wageType" column="wage_type" />
|
|
|
- <result property="isDiscussPersonally" column="is_discuss_personally" />
|
|
|
- <result property="contactPerson" column="contact_person" />
|
|
|
- <result property="tel" column="tel_" />
|
|
|
- <result property="status" column="status_" />
|
|
|
- <result property="approveStatus" column="approve_status" />
|
|
|
- <result property="readingTimes" column="reading_times" />
|
|
|
- <result property="collectionTimes" column="collection_times" />
|
|
|
- <result property="deliveryTimes" column="delivery_times" />
|
|
|
- <result property="createBy" column="create_by" />
|
|
|
- <result property="createTime" column="create_time" />
|
|
|
- <result property="updateBy" column="update_by" />
|
|
|
- <result property="updateTime" column="update_time" />
|
|
|
- <result property="delFlag" column="del_flag" />
|
|
|
- </resultMap>
|
|
|
- <resultMap id="RecruitmentVOMap" type="com.jpsoft.employment.modules.job.entity.RecruitmentVO" extends="RecruitmentMap">
|
|
|
- <result property="positionName" column="position_name" />
|
|
|
+ <result property="companyId" column="company_id" />
|
|
|
+ <result property="title" column="title_" />
|
|
|
+ <result property="area" column="area_" />
|
|
|
+ <result property="address" column="address_" />
|
|
|
+ <result property="position" column="position_" />
|
|
|
+ <result property="positionMessage" column="position_message" />
|
|
|
+ <result property="requirements" column="requirements_" />
|
|
|
+ <result property="positionNumber" column="position_number" />
|
|
|
+ <result property="workYear" column="work_year" />
|
|
|
+ <result property="education" column="education_" />
|
|
|
+ <result property="positionSex" column="position_sex" />
|
|
|
+ <result property="readTimes" column="read_times" />
|
|
|
+ <result property="wageType" column="wage_type" />
|
|
|
+ <result property="isDiscussPersonally" column="is_discuss_personally" />
|
|
|
+ <result property="contactPerson" column="contact_person" />
|
|
|
+ <result property="tel" column="tel_" />
|
|
|
+ <result property="status" column="status_" />
|
|
|
+ <result property="approveStatus" column="approve_status" />
|
|
|
+ <result property="readingTimes" column="reading_times" />
|
|
|
+ <result property="collectionTimes" column="collection_times" />
|
|
|
+ <result property="deliveryTimes" column="delivery_times" />
|
|
|
+ <result property="createBy" column="create_by" />
|
|
|
+ <result property="createTime" column="create_time" />
|
|
|
+ <result property="updateBy" column="update_by" />
|
|
|
+ <result property="updateTime" column="update_time" />
|
|
|
+ <result property="delFlag" column="del_flag" />
|
|
|
+ <result property="workCategoryId" column="work_category_id" />
|
|
|
</resultMap>
|
|
|
<insert id="insert" parameterType="com.jpsoft.employment.modules.job.entity.Recruitment">
|
|
|
<!--
|
|
|
@@ -43,7 +41,7 @@
|
|
|
-->
|
|
|
<![CDATA[
|
|
|
insert into job_recruitment
|
|
|
- (id_,company_id,title_,area_,address_,position_,position_message,requirements_,position_number,work_year,education_,position_sex,read_times,wage_type,is_discuss_personally,contact_person,tel_,status_,approve_status,reading_times,collection_times,delivery_times,create_by,create_time,update_by,update_time,del_flag)
|
|
|
+ (id_,company_id,title_,area_,address_,position_,position_message,requirements_,position_number,work_year,education_,position_sex,read_times,wage_type,is_discuss_personally,contact_person,tel_,status_,approve_status,reading_times,collection_times,delivery_times,create_by,create_time,update_by,update_time,del_flag,work_category_id)
|
|
|
values
|
|
|
(
|
|
|
#{id,jdbcType=VARCHAR}
|
|
|
@@ -73,6 +71,7 @@
|
|
|
,#{updateBy,jdbcType=VARCHAR}
|
|
|
,#{updateTime,jdbcType= TIMESTAMP }
|
|
|
,#{delFlag,jdbcType= NUMERIC }
|
|
|
+,#{workCategoryId,jdbcType= VARCHAR }
|
|
|
)
|
|
|
]]>
|
|
|
</insert>
|
|
|
@@ -160,11 +159,15 @@
|
|
|
<if test="delFlag!=null">
|
|
|
del_flag=#{delFlag,jdbcType= NUMERIC },
|
|
|
</if>
|
|
|
+ <if test="workCategoryId!=null">
|
|
|
+ work_category_id=#{workCategoryId,jdbcType= VARCHAR },
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id_=#{id}
|
|
|
</update>
|
|
|
<select id="get" parameterType="string" resultMap="RecruitmentMap">
|
|
|
- select * from job_recruitment where id_=#{0}
|
|
|
+ select
|
|
|
+id_,company_id,title_,area_,address_,position_,position_message,requirements_,position_number,work_year,education_,position_sex,read_times,wage_type,is_discuss_personally,contact_person,tel_,status_,approve_status,reading_times,collection_times,delivery_times,create_by,create_time,update_by,update_time,del_flag,work_category_id from job_recruitment where id_=#{0}
|
|
|
</select>
|
|
|
<select id="exist" parameterType="string" resultType="int">
|
|
|
select count(*) from job_recruitment where id_=#{0}
|
|
|
@@ -177,16 +180,9 @@
|
|
|
select * from job_recruitment
|
|
|
]]>
|
|
|
<where>
|
|
|
- del_flag = 0
|
|
|
<if test="searchParams.id != null">
|
|
|
and ID_ like #{searchParams.id}
|
|
|
</if>
|
|
|
- <if test="searchParams.relevantTitle != null">
|
|
|
- and title_ like #{searchParams.relevantTitle}
|
|
|
- </if>
|
|
|
- <if test="searchParams.notrelevantId != null">
|
|
|
- and id_ != #{searchParams.notrelevantId}
|
|
|
- </if>
|
|
|
</where>
|
|
|
<foreach item="sort" collection="sortList" open="order by" separator=",">
|
|
|
${sort.name} ${sort.order}
|
|
|
@@ -202,16 +198,21 @@
|
|
|
jr.address_ AS address,
|
|
|
bc.logo_ AS logo,
|
|
|
bc.name_ AS name,
|
|
|
- sdd.name_ AS scaleName,
|
|
|
- bci.city_name AS cityName
|
|
|
+ sdda.name_ AS scaleName,
|
|
|
+ sddb.name_ AS wageTypeN,
|
|
|
+ bci.city_name AS cityName,
|
|
|
+ jwc.name_ AS code
|
|
|
FROM
|
|
|
job_recruitment AS jr
|
|
|
INNER JOIN base_company AS bc
|
|
|
- INNER JOIN sys_data_dictionary AS sdd
|
|
|
+ INNER JOIN sys_data_dictionary AS sdda
|
|
|
+ INNER JOIN sys_data_dictionary AS sddb
|
|
|
INNER JOIN base_city AS bci
|
|
|
INNER JOIN job_work_category AS jwc ON jr.company_id = bc.id_
|
|
|
- AND bc.scale_ = sdd.id_
|
|
|
AND jr.area_ = bci.id_
|
|
|
+ AND jr.position_ = jwc.id_
|
|
|
+ AND bc.scale_ = sdda.id_
|
|
|
+ AND jr.wage_type = sddb.id_
|
|
|
]]>
|
|
|
<where>
|
|
|
<if test="searchParams.id != null">
|
|
|
@@ -230,48 +231,23 @@
|
|
|
and jr.education_ like #{searchParams.education}
|
|
|
</if>
|
|
|
<if test="searchParams.recruitmentPosition != null">
|
|
|
- and jwc.id_ like #{searchParams.recruitmentPosition}
|
|
|
+ and jr.position_ like #{searchParams.recruitmentPosition}
|
|
|
</if>
|
|
|
- </where>
|
|
|
- <foreach item="sort" collection="sortList" open="order by" separator=",">
|
|
|
- ${sort.name} ${sort.order}
|
|
|
- </foreach>
|
|
|
- </select>
|
|
|
-
|
|
|
- <!--招聘方职位管理-->
|
|
|
- <select id="loadForRecruiter" parameterType="hashMap" resultType="RecruitmentVOMap">
|
|
|
- <![CDATA[
|
|
|
- SELECT
|
|
|
- jr.*,
|
|
|
- jwc.name_ position_name
|
|
|
- FROM
|
|
|
- job_recruitment jr
|
|
|
- INNER JOIN job_work_category jwc ON jr.position_ = jwc.id_
|
|
|
- where jr.del_flag=0 and jwc.del_flag=0
|
|
|
- ]]>
|
|
|
- <where>
|
|
|
- <if test="searchParams.recruiter != null"> <!--按创建人(招聘人)过滤-->
|
|
|
- and jr.create_by=#{searchParams.recruiter}
|
|
|
+ <if test="searchParams.relevantTitle != null">
|
|
|
+ and jr.title_ like #{searchParams.relevantTitle}
|
|
|
</if>
|
|
|
- <if test='searchParams.status =="publish"'> <!--按招聘状态过滤publish:已发布且审核完;approve:审核中;close:关闭下架-->
|
|
|
- and jr.status_='open' and jr.approve_status='94905388-a409-4096-a842-5128823250c5'
|
|
|
+ <if test="searchParams.notrelevantId != null">
|
|
|
+ and jr.id_ != #{searchParams.notrelevantId}
|
|
|
</if>
|
|
|
- <if test='searchParams.status =="approve"'>
|
|
|
- and jr.status_='open' and jr.approve_status='eeba3cbf-80b3-4db9-a9e6-695f00c087b5'
|
|
|
+ <if test="searchParams.status != null">
|
|
|
+ and jr.status_ = #{searchParams.status}
|
|
|
</if>
|
|
|
- <if test='searchParams.status =="close"'>
|
|
|
- and jr.status_='close'
|
|
|
+ <if test="searchParams.approveStatus != null">
|
|
|
+ and jr.approve_status = #{searchParams.approveStatus}
|
|
|
</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>
|