| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- <?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" >
- <mapper namespace="com.ssm.mapper.business.ResumeWorkMapper" >
- <resultMap id="BaseResultMap" type="com.ssm.model.business.ResumeWork" >
- <id column="WorkID" property="workid" jdbcType="INTEGER" />
- <result column="CompanyName" property="companyname" jdbcType="VARCHAR" />
- <result column="CompanyPosition" property="companyposition" jdbcType="VARCHAR" />
- <result column="LeaderName" property="leadername" jdbcType="VARCHAR" />
- <result column="LeaderMobile" property="leadermobile" jdbcType="VARCHAR" />
- <result column="IinductionStartDate" property="iinductionstartdate" jdbcType="TIMESTAMP" />
- <result column="IinductionEndDate" property="iinductionenddate" jdbcType="TIMESTAMP" />
- <result column="PostionName" property="postionname" jdbcType="VARCHAR" />
- <result column="WorkDetail" property="workdetail" jdbcType="VARCHAR" />
- <result column="ResumeID" property="resumeid" jdbcType="INTEGER" />
- <result column="OrderBy" property="orderby" jdbcType="INTEGER" />
- <result column="Reason" property="reason" jdbcType="VARCHAR" />
- </resultMap>
- <sql id="Base_Column_List" >
- WorkID, CompanyName, CompanyPosition, LeaderName, LeaderMobile, IinductionStartDate,
- IinductionEndDate, PostionName, WorkDetail, ResumeID, OrderBy, Reason
- </sql>
- <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
- select
- <include refid="Base_Column_List" />
- from ResumeWork
- where WorkID = #{workid,jdbcType=INTEGER}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
- delete from ResumeWork
- where WorkID = #{workid,jdbcType=INTEGER}
- </delete>
- <insert id="insert" parameterType="com.ssm.model.business.ResumeWork" >
- insert into ResumeWork (WorkID, CompanyName, CompanyPosition,
- LeaderName, LeaderMobile, IinductionStartDate,
- IinductionEndDate, PostionName, WorkDetail,
- ResumeID, OrderBy, Reason
- )
- values (#{workid,jdbcType=INTEGER}, #{companyname,jdbcType=VARCHAR}, #{companyposition,jdbcType=VARCHAR},
- #{leadername,jdbcType=VARCHAR}, #{leadermobile,jdbcType=VARCHAR}, #{iinductionstartdate,jdbcType=TIMESTAMP},
- #{iinductionenddate,jdbcType=TIMESTAMP}, #{postionname,jdbcType=VARCHAR}, #{workdetail,jdbcType=VARCHAR},
- #{resumeid,jdbcType=INTEGER}, #{orderby,jdbcType=INTEGER}, #{reason,jdbcType=VARCHAR}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.ssm.model.business.ResumeWork" >
- insert into ResumeWork
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="workid != null" >
- WorkID,
- </if>
- <if test="companyname != null" >
- CompanyName,
- </if>
- <if test="companyposition != null" >
- CompanyPosition,
- </if>
- <if test="leadername != null" >
- LeaderName,
- </if>
- <if test="leadermobile != null" >
- LeaderMobile,
- </if>
- <if test="iinductionstartdate != null" >
- IinductionStartDate,
- </if>
- <if test="iinductionenddate != null" >
- IinductionEndDate,
- </if>
- <if test="postionname != null" >
- PostionName,
- </if>
- <if test="workdetail != null" >
- WorkDetail,
- </if>
- <if test="resumeid != null" >
- ResumeID,
- </if>
- <if test="orderby != null" >
- OrderBy,
- </if>
- <if test="reason != null" >
- Reason,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="workid != null" >
- #{workid,jdbcType=INTEGER},
- </if>
- <if test="companyname != null" >
- #{companyname,jdbcType=VARCHAR},
- </if>
- <if test="companyposition != null" >
- #{companyposition,jdbcType=VARCHAR},
- </if>
- <if test="leadername != null" >
- #{leadername,jdbcType=VARCHAR},
- </if>
- <if test="leadermobile != null" >
- #{leadermobile,jdbcType=VARCHAR},
- </if>
- <if test="iinductionstartdate != null" >
- #{iinductionstartdate,jdbcType=TIMESTAMP},
- </if>
- <if test="iinductionenddate != null" >
- #{iinductionenddate,jdbcType=TIMESTAMP},
- </if>
- <if test="postionname != null" >
- #{postionname,jdbcType=VARCHAR},
- </if>
- <if test="workdetail != null" >
- #{workdetail,jdbcType=VARCHAR},
- </if>
- <if test="resumeid != null" >
- #{resumeid,jdbcType=INTEGER},
- </if>
- <if test="orderby != null" >
- #{orderby,jdbcType=INTEGER},
- </if>
- <if test="reason != null" >
- #{reason,jdbcType=VARCHAR},
- </if>
- </trim>
- ON DUPLICATE KEY UPDATE
- <trim suffixOverrides=",">
- <if test="companyname != null" >
- CompanyName = #{companyname,jdbcType=VARCHAR},
- </if>
- <if test="companyposition != null" >
- CompanyPosition = #{companyposition,jdbcType=VARCHAR},
- </if>
- <if test="leadername != null" >
- LeaderName = #{leadername,jdbcType=VARCHAR},
- </if>
- <if test="leadermobile != null" >
- LeaderMobile = #{leadermobile,jdbcType=VARCHAR},
- </if>
- <if test="iinductionstartdate != null" >
- IinductionStartDate = #{iinductionstartdate,jdbcType=TIMESTAMP},
- </if>
- <if test="iinductionenddate != null" >
- IinductionEndDate = #{iinductionenddate,jdbcType=TIMESTAMP},
- </if>
- <if test="postionname != null" >
- PostionName = #{postionname,jdbcType=VARCHAR},
- </if>
- <if test="workdetail != null" >
- WorkDetail = #{workdetail,jdbcType=VARCHAR},
- </if>
- <if test="orderby != null" >
- OrderBy = #{orderby,jdbcType=INTEGER},
- </if>
- <if test="reason != null" >
- Reason = #{reason,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.ssm.model.business.ResumeWork" >
- update ResumeWork
- <set >
- <if test="companyname != null" >
- CompanyName = #{companyname,jdbcType=VARCHAR},
- </if>
- <if test="companyposition != null" >
- CompanyPosition = #{companyposition,jdbcType=VARCHAR},
- </if>
- <if test="leadername != null" >
- LeaderName = #{leadername,jdbcType=VARCHAR},
- </if>
- <if test="leadermobile != null" >
- LeaderMobile = #{leadermobile,jdbcType=VARCHAR},
- </if>
- <if test="iinductionstartdate != null" >
- IinductionStartDate = #{iinductionstartdate,jdbcType=TIMESTAMP},
- </if>
- <if test="iinductionenddate != null" >
- IinductionEndDate = #{iinductionenddate,jdbcType=TIMESTAMP},
- </if>
- <if test="postionname != null" >
- PostionName = #{postionname,jdbcType=VARCHAR},
- </if>
- <if test="workdetail != null" >
- WorkDetail = #{workdetail,jdbcType=VARCHAR},
- </if>
- <if test="resumeid != null" >
- ResumeID = #{resumeid,jdbcType=INTEGER},
- </if>
- <if test="orderby != null" >
- OrderBy = #{orderby,jdbcType=INTEGER},
- </if>
- <if test="reason != null" >
- Reason = #{reason,jdbcType=VARCHAR},
- </if>
- </set>
- where WorkID = #{workid,jdbcType=INTEGER}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.ssm.model.business.ResumeWork" >
- update ResumeWork
- set CompanyName = #{companyname,jdbcType=VARCHAR},
- CompanyPosition = #{companyposition,jdbcType=VARCHAR},
- LeaderName = #{leadername,jdbcType=VARCHAR},
- LeaderMobile = #{leadermobile,jdbcType=VARCHAR},
- IinductionStartDate = #{iinductionstartdate,jdbcType=TIMESTAMP},
- IinductionEndDate = #{iinductionenddate,jdbcType=TIMESTAMP},
- PostionName = #{postionname,jdbcType=VARCHAR},
- WorkDetail = #{workdetail,jdbcType=VARCHAR},
- ResumeID = #{resumeid,jdbcType=INTEGER},
- OrderBy = #{orderby,jdbcType=INTEGER},
- Reason = #{reason,jdbcType=VARCHAR}
- where WorkID = #{workid,jdbcType=INTEGER}
- </update>
- <select id="selectWorkListByResumeId" parameterType="java.lang.Integer" resultMap="BaseResultMap">
- SELECT * from ResumeWork s where s.ResumeID=#{resumeId} ORDER BY s.OrderBy ASC
- </select>
- </mapper>
|