|
@@ -5,25 +5,29 @@
|
|
|
<mapper namespace="com.jpsoft.employment.modules.job.dao.ResumeDAO">
|
|
|
<resultMap id="ResumeMap" type="com.jpsoft.employment.modules.job.entity.Resume">
|
|
|
<id property="id" column="id_" />
|
|
|
- <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="jobUserId" column="job_user_id" />
|
|
|
- <result property="sex" column="sex_" />
|
|
|
- <result property="positionCategoryId" column="position_category_id" />
|
|
|
- <result property="workExp" column="work_exp" />
|
|
|
- <result property="education" column="education_" />
|
|
|
- <result property="dreamMoney" column="dream_money" />
|
|
|
- <result property="dreamAdd" column="dream_add" />
|
|
|
- <result property="birthday" column="birthday_" />
|
|
|
- <result property="introduction" column="introduction_" />
|
|
|
- <result property="status" column="status_" />
|
|
|
- <result property="approveStatus" column="approve_status" />
|
|
|
- <result property="jobStatus" column="job_status" />
|
|
|
- <result property="resumeUrls" column="resume_urls" />
|
|
|
- </resultMap>
|
|
|
+ <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="jobUserId" column="job_user_id" />
|
|
|
+ <result property="sex" column="sex_" />
|
|
|
+ <result property="positionCategoryId" column="position_category_id" />
|
|
|
+ <result property="workExp" column="work_exp" />
|
|
|
+ <result property="education" column="education_" />
|
|
|
+ <result property="dreamMoney" column="dream_money" />
|
|
|
+ <result property="dreamAdd" column="dream_add" />
|
|
|
+ <result property="birthday" column="birthday_" />
|
|
|
+ <result property="introduction" column="introduction_" />
|
|
|
+ <result property="status" column="status_" />
|
|
|
+ <result property="approveStatus" column="approve_status" />
|
|
|
+ <result property="jobStatus" column="job_status" />
|
|
|
+ <result property="resumeUrls" column="resume_urls" />
|
|
|
+ <!--外联字段-->
|
|
|
+ <result property="userPhoto" column="head_image_url" />
|
|
|
+ <result property="userName" column="real_name" />
|
|
|
+ <result property="userIsAuthentication" column="is_authentication" />
|
|
|
+ </resultMap>
|
|
|
<insert id="insert" parameterType="com.jpsoft.employment.modules.job.entity.Resume">
|
|
|
<!--
|
|
|
<selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
|
@@ -132,12 +136,22 @@
|
|
|
</select>
|
|
|
<select id="search" parameterType="hashmap" resultMap="ResumeMap">
|
|
|
<![CDATA[
|
|
|
- select * from job_resume
|
|
|
+ SELECT a.*,b.head_image_url,b.real_name,b.is_authentication FROM job_resume a
|
|
|
+ LEFT JOIN job_jobuser b ON a.job_user_id = b.id_
|
|
|
]]>
|
|
|
<where>
|
|
|
- del_flag = 0
|
|
|
- <if test="searchParams.id != null">
|
|
|
- and ID_ like #{searchParams.id}
|
|
|
+ a.del_flag = 0
|
|
|
+ <if test="searchParams.positionCategoryId != null">
|
|
|
+ and a.position_category_id = #{searchParams.positionCategoryId}
|
|
|
+ </if>
|
|
|
+ <if test="searchParams.approveStatus != null">
|
|
|
+ and a.approve_status = #{searchParams.approveStatus}
|
|
|
+ </if>
|
|
|
+ <if test="searchParams.status != null">
|
|
|
+ and a.status_ = #{searchParams.status}
|
|
|
+ </if>
|
|
|
+ <if test="searchParams.name != null">
|
|
|
+ and b.real_name like #{searchParams.name}
|
|
|
</if>
|
|
|
</where>
|
|
|
<foreach item="sort" collection="sortList" open="order by" separator=",">
|