|
@@ -0,0 +1,125 @@
|
|
|
|
+<?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.ResumeDeliverContentDAO">
|
|
|
|
+ <resultMap id="ResumeDeliverContentMap" type="com.jpsoft.employment.modules.job.entity.ResumeDeliverContent">
|
|
|
|
+ <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="deliverId" column="deliver_id" />
|
|
|
|
+ <result property="chatStatus" column="chat_status" />
|
|
|
|
+ <result property="todoTime" column="todo_time" />
|
|
|
|
+ <result property="todoMinuteStart" column="todo_minute_start" />
|
|
|
|
+ <result property="todoMinuteEnd" column="todo_minute_end" />
|
|
|
|
+ <result property="address" column="address_" />
|
|
|
|
+ <result property="entryPost" column="entry_post" />
|
|
|
|
+ <result property="entryDepartment" column="entry_department" />
|
|
|
|
+ <result property="remark" column="remark_" />
|
|
|
|
+ </resultMap>
|
|
|
|
+ <insert id="insert" parameterType="com.jpsoft.employment.modules.job.entity.ResumeDeliverContent">
|
|
|
|
+ <!--
|
|
|
|
+ <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
|
|
|
|
+ select sys_guid() from dual
|
|
|
|
+ </selectKey>
|
|
|
|
+ -->
|
|
|
|
+ <![CDATA[
|
|
|
|
+ insert into job_resume_deliver_content
|
|
|
|
+ (id_,create_by,create_time,update_by,update_time,del_flag,deliver_id,chat_status,todo_time,todo_minute_start,todo_minute_end,address_,entry_post,entry_department,remark_)
|
|
|
|
+ values
|
|
|
|
+ (
|
|
|
|
+#{id,jdbcType=VARCHAR}
|
|
|
|
+,#{createBy,jdbcType=VARCHAR}
|
|
|
|
+,#{createTime,jdbcType= TIMESTAMP }
|
|
|
|
+,#{updateBy,jdbcType=VARCHAR}
|
|
|
|
+,#{updateTime,jdbcType= TIMESTAMP }
|
|
|
|
+,#{delFlag,jdbcType= NUMERIC }
|
|
|
|
+,#{deliverId,jdbcType=VARCHAR}
|
|
|
|
+,#{chatStatus,jdbcType=VARCHAR}
|
|
|
|
+,#{todoTime,jdbcType=VARCHAR}
|
|
|
|
+,#{todoMinuteStart,jdbcType=VARCHAR}
|
|
|
|
+,#{todoMinuteEnd,jdbcType=VARCHAR}
|
|
|
|
+,#{address,jdbcType= NUMERIC }
|
|
|
|
+,#{entryPost,jdbcType=VARCHAR}
|
|
|
|
+,#{entryDepartment,jdbcType=VARCHAR}
|
|
|
|
+,#{remark,jdbcType=VARCHAR}
|
|
|
|
+ )
|
|
|
|
+ ]]>
|
|
|
|
+ </insert>
|
|
|
|
+ <delete id="delete" parameterType="string">
|
|
|
|
+ delete from job_resume_deliver_content where id_=#{id,jdbcType=VARCHAR}
|
|
|
|
+ </delete>
|
|
|
|
+ <update id="update" parameterType="com.jpsoft.employment.modules.job.entity.ResumeDeliverContent">
|
|
|
|
+ update job_resume_deliver_content
|
|
|
|
+ <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="deliverId!=null">
|
|
|
|
+ deliver_id=#{deliverId,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="chatStatus!=null">
|
|
|
|
+ chat_status=#{chatStatus,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="todoTime!=null">
|
|
|
|
+ todo_time=#{todoTime,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="todoMinuteStart!=null">
|
|
|
|
+ todo_minute_start=#{todoMinuteStart,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="todoMinuteEnd!=null">
|
|
|
|
+ todo_minute_end=#{todoMinuteEnd,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="address!=null">
|
|
|
|
+ address_=#{address,jdbcType= NUMERIC },
|
|
|
|
+ </if>
|
|
|
|
+ <if test="entryPost!=null">
|
|
|
|
+ entry_post=#{entryPost,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="entryDepartment!=null">
|
|
|
|
+ entry_department=#{entryDepartment,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="remark!=null">
|
|
|
|
+ remark_=#{remark,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ </set>
|
|
|
|
+ where id_=#{id}
|
|
|
|
+ </update>
|
|
|
|
+ <select id="get" parameterType="string" resultMap="ResumeDeliverContentMap">
|
|
|
|
+ select * from job_resume_deliver_content where id_=#{0}
|
|
|
|
+ </select>
|
|
|
|
+ <select id="exist" parameterType="string" resultType="int">
|
|
|
|
+ select count(*) from job_resume_deliver_content where id_=#{0}
|
|
|
|
+ </select>
|
|
|
|
+ <select id="list" resultMap="ResumeDeliverContentMap">
|
|
|
|
+ select * from job_resume_deliver_content
|
|
|
|
+ </select>
|
|
|
|
+ <select id="search" parameterType="hashmap" resultMap="ResumeDeliverContentMap">
|
|
|
|
+ <![CDATA[
|
|
|
|
+ select * from job_resume_deliver_content
|
|
|
|
+ ]]>
|
|
|
|
+ <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>
|
|
|
|
+</mapper>
|