|
|
@@ -12,7 +12,38 @@
|
|
|
<result property="delFlag" column="del_flag" />
|
|
|
<result property="jobUserId" column="job_user_id" />
|
|
|
<result property="jobRecruitmentId" column="job_recruitment_id" />
|
|
|
- </resultMap>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <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>
|
|
|
+
|
|
|
<insert id="insert" parameterType="com.jpsoft.employment.modules.job.entity.UserBrowse">
|
|
|
<!--
|
|
|
<selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
|
|
@@ -88,4 +119,16 @@ id_,create_by,create_time,update_by,update_time,del_flag,job_user_id,job_recruit
|
|
|
${sort.name} ${sort.order}
|
|
|
</foreach>
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="loadUserBrowses" parameterType="hashmap" resultMap="RecruitmentMap">
|
|
|
+ <![CDATA[
|
|
|
+ select j.* from job_user_browse b inner join job_recruitment j on b.job_recruitment_id=j.id_ and j.del_flag=0
|
|
|
+ ]]>
|
|
|
+ <where>
|
|
|
+ and job_user_id = #{searchParams.jobUserId}
|
|
|
+ </where>
|
|
|
+ <foreach item="sort" collection="sortList" open="order by" separator=",">
|
|
|
+ ${sort.name} ${sort.order}
|
|
|
+ </foreach>
|
|
|
+ </select>
|
|
|
</mapper>
|