|
|
@@ -22,6 +22,8 @@
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
<result property="browseNumber" column="browse_number" />
|
|
|
<result property="address" column="address_" />
|
|
|
+ <result property="isAnonymous" column="is_anonymous" />
|
|
|
+ <result property="jobStatus" column="job_status" />
|
|
|
</resultMap>
|
|
|
<insert id="insert" parameterType="com.jpsoft.employment.modules.base.entity.JobInformationInfo">
|
|
|
<!--
|
|
|
@@ -33,7 +35,7 @@
|
|
|
insert into base_job_information_info
|
|
|
(id_,person_id,photo_,service_desc,Intended_industries,Intended_position,
|
|
|
hope_salary,method_,work_experience,education_,status_,create_by,create_time,
|
|
|
- update_by,update_time,del_flag,browse_number,address_)
|
|
|
+ update_by,update_time,del_flag,browse_number,address_,job_status)
|
|
|
values
|
|
|
(
|
|
|
#{id,jdbcType=VARCHAR}
|
|
|
@@ -54,6 +56,7 @@
|
|
|
,#{delFlag,jdbcType= NUMERIC }
|
|
|
,#{browseNumber,jdbcType= NUMERIC }
|
|
|
,#{address,jdbcType=VARCHAR}
|
|
|
+,#{jobStatus,jdbcType=VARCHAR}
|
|
|
)
|
|
|
]]>
|
|
|
</insert>
|
|
|
@@ -114,6 +117,9 @@
|
|
|
<if test="address!=null">
|
|
|
address_=#{address,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="jobStatus!=null">
|
|
|
+ job_status=#{jobStatus,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where id_=#{id}
|
|
|
</update>
|
|
|
@@ -161,7 +167,8 @@
|
|
|
<select id="searchMobile" parameterType="hashmap" resultMap="JobInformationInfoMap">
|
|
|
<![CDATA[
|
|
|
SELECT
|
|
|
- a.*
|
|
|
+ a.*,
|
|
|
+ b.is_anonymous as is_anonymous
|
|
|
FROM
|
|
|
base_job_information_info a
|
|
|
left join base_person_info b on a.person_id = b.id_
|
|
|
@@ -208,6 +215,18 @@
|
|
|
or b.intention_ is null )
|
|
|
]]>
|
|
|
</if>
|
|
|
+ <if test="searchParams.intention != null">
|
|
|
+ <![CDATA[
|
|
|
+ and ( b.intention_ = #{searchParams.intention}
|
|
|
+ or b.intention_ is null )
|
|
|
+ ]]>
|
|
|
+ </if>
|
|
|
+ <if test="searchParams.jobStatus != null">
|
|
|
+ <![CDATA[
|
|
|
+ and ( a.job_status = #{searchParams.jobStatus}
|
|
|
+ or a.job_status is null )
|
|
|
+ ]]>
|
|
|
+ </if>
|
|
|
</where>
|
|
|
<foreach item="sort" collection="sortList" open="order by" separator=",">
|
|
|
${sort.name} ${sort.order}
|