| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <!-- namespace必须指向DAO接口 -->
- <mapper namespace="com.jpsoft.employment.modules.job.dao.ResumeEducationExperienceDAO">
- <resultMap id="ResumeEducationExperienceMap" type="com.jpsoft.employment.modules.job.entity.ResumeEducationExperience">
- <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="resumeId" column="resume_id" />
- <result property="sortNo" column="sort_no" />
- <result property="startTime" column="start_time" />
- <result property="endTime" column="end_time" />
- <result property="schoolName" column="school_name" />
- <result property="education" column="education_" />
- <result property="major" column="major_" />
- </resultMap>
- <insert id="insert" parameterType="com.jpsoft.employment.modules.job.entity.ResumeEducationExperience">
- <!--
- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
- select sys_guid() from dual
- </selectKey>
- -->
- <![CDATA[
- insert into job_resume_education_experience
- (id_,create_by,create_time,update_by,update_time,del_flag,resume_id,sort_no,start_time,end_time,school_name,education_,major_)
- values
- (
- #{id,jdbcType=VARCHAR}
- ,#{createBy,jdbcType=VARCHAR}
- ,#{createTime,jdbcType= TIMESTAMP }
- ,#{updateBy,jdbcType=VARCHAR}
- ,#{updateTime,jdbcType= TIMESTAMP }
- ,#{delFlag,jdbcType= NUMERIC }
- ,#{resumeId,jdbcType=VARCHAR}
- ,#{sortNo,jdbcType= NUMERIC }
- ,#{startTime,jdbcType= VARCHAR }
- ,#{endTime,jdbcType= VARCHAR }
- ,#{schoolName,jdbcType=VARCHAR}
- ,#{education,jdbcType=VARCHAR}
- ,#{major,jdbcType=VARCHAR}
- )
- ]]>
- </insert>
- <delete id="delete" parameterType="string">
- delete from job_resume_education_experience where id_=#{id,jdbcType=VARCHAR}
- </delete>
- <update id="update" parameterType="com.jpsoft.employment.modules.job.entity.ResumeEducationExperience">
- update job_resume_education_experience
- <set>
- <if test="createBy!=null">
- create_by=#{createBy,jdbcType=VARCHAR},
- </if>
- <if test="createTime!=null">
- create_time=#{createTime,jdbcType= TIMESTAMP },
- </if>
- <if test="updateBy!=null">
- update_by=#{updateBy,jdbcType=VARCHAR},
- </if>
- <if test="updateTime!=null">
- update_time=#{updateTime,jdbcType= TIMESTAMP },
- </if>
- <if test="delFlag!=null">
- del_flag=#{delFlag,jdbcType= NUMERIC },
- </if>
- <if test="resumeId!=null">
- resume_id=#{resumeId,jdbcType=VARCHAR},
- </if>
- <if test="sortNo!=null">
- sort_no=#{sortNo,jdbcType= NUMERIC },
- </if>
- <if test="startTime!=null">
- start_time=#{startTime,jdbcType= VARCHAR },
- </if>
- <if test="endTime!=null">
- end_time=#{endTime,jdbcType= VARCHAR },
- </if>
- <if test="schoolName!=null">
- school_name=#{schoolName,jdbcType=VARCHAR},
- </if>
- <if test="education!=null">
- education_=#{education,jdbcType=VARCHAR},
- </if>
- <if test="major!=null">
- major_=#{major,jdbcType=VARCHAR},
- </if>
- </set>
- where id_=#{id}
- </update>
- <select id="get" parameterType="string" resultMap="ResumeEducationExperienceMap">
- select * from job_resume_education_experience where id_=#{0}
- </select>
- <select id="exist" parameterType="string" resultType="int">
- select count(*) from job_resume_education_experience where id_=#{0}
- </select>
- <select id="list" resultMap="ResumeEducationExperienceMap">
- select * from job_resume_education_experience
- </select>
- <select id="search" parameterType="hashmap" resultMap="ResumeEducationExperienceMap">
- <![CDATA[
- select * from job_resume_education_experience
- ]]>
- <where>
- <if test="searchParams.id != null">
- and ID_ like #{searchParams.id}
- </if>
- </where>
- <foreach item="sort" collection="sortList" open="order by" separator=",">
- ${sort.name} ${sort.order}
- </foreach>
- </select>
- <select id="findByResumeId" parameterType="string" resultMap="ResumeEducationExperienceMap">
- select
- *
- from
- job_resume_education_experience
- where del_flag = 0
- and resume_id = #{resumeId}
- order by sort_no
- </select>
- <update id="deleteByResumeId" parameterType="com.jpsoft.employment.modules.job.entity.ResumeEducationExperience">
- UPDATE job_resume_education_experience set del_flag = 1
- WHERE
- resume_id = #{resumeId}
- </update>
- </mapper>
|