| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <?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.base.dao.JobInformationInfoDAO">
- <resultMap id="JobInformationInfoMap" type="com.jpsoft.employment.modules.base.entity.JobInformationInfo">
- <id property="id" column="id_" />
- <result property="personId" column="person_id" />
- <result property="photo" column="photo_" />
- <result property="serviceDesc" column="service_desc" />
- <result property="intendedIndustries" column="Intended_industries" />
- <result property="intendedPosition" column="Intended_position" />
- <result property="hopeSalary" column="hope_salary" />
- <result property="method" column="method_" />
- <result property="workExperience" column="work_experience" />
- <result property="education" column="education_" />
- <result property="status" column="status_" />
- <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.base.entity.JobInformationInfo">
- <!--
- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
- select sys_guid() from dual
- </selectKey>
- -->
- <![CDATA[
- insert into base_job_information_info
- (id_,person_id,photo_,service_desc,Intended_industries,Intended_position,hope_salary,method_,work_experience,education_,status_,create_by,create_time,update_by,update_time,del_flag)
- values
- (
- #{id,jdbcType=VARCHAR}
- ,#{personId,jdbcType=VARCHAR}
- ,#{photo,jdbcType=VARCHAR}
- ,#{serviceDesc,jdbcType=VARCHAR}
- ,#{intendedIndustries,jdbcType=VARCHAR}
- ,#{intendedPosition,jdbcType=VARCHAR}
- ,#{hopeSalary,jdbcType= NUMERIC }
- ,#{method,jdbcType=VARCHAR}
- ,#{workExperience,jdbcType= NUMERIC }
- ,#{education,jdbcType=VARCHAR}
- ,#{status,jdbcType=VARCHAR}
- ,#{createBy,jdbcType=VARCHAR}
- ,#{createTime,jdbcType= TIMESTAMP }
- ,#{updateBy,jdbcType=VARCHAR}
- ,#{updateTime,jdbcType= TIMESTAMP }
- ,#{delFlag,jdbcType= NUMERIC }
- )
- ]]>
- </insert>
- <delete id="delete" parameterType="string">
- delete from base_job_information_info where id_=#{id,jdbcType=VARCHAR}
- </delete>
- <update id="update" parameterType="com.jpsoft.employment.modules.base.entity.JobInformationInfo">
- update base_job_information_info
- <set>
- <if test="personId!=null">
- person_id=#{personId,jdbcType=VARCHAR},
- </if>
- <if test="photo!=null">
- photo_=#{photo,jdbcType=VARCHAR},
- </if>
- <if test="serviceDesc!=null">
- service_desc=#{serviceDesc,jdbcType=VARCHAR},
- </if>
- <if test="intendedIndustries!=null">
- Intended_industries=#{intendedIndustries,jdbcType=VARCHAR},
- </if>
- <if test="intendedPosition!=null">
- Intended_position=#{intendedPosition,jdbcType=VARCHAR},
- </if>
- <if test="hopeSalary!=null">
- hope_salary=#{hopeSalary,jdbcType= NUMERIC },
- </if>
- <if test="method!=null">
- method_=#{method,jdbcType=VARCHAR},
- </if>
- <if test="workExperience!=null">
- work_experience=#{workExperience,jdbcType= NUMERIC },
- </if>
- <if test="education!=null">
- education_=#{education,jdbcType=VARCHAR},
- </if>
- <if test="status!=null">
- status_=#{status,jdbcType=VARCHAR},
- </if>
- <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>
- </set>
- where id_=#{id}
- </update>
- <select id="get" parameterType="string" resultMap="JobInformationInfoMap">
- select * from base_job_information_info where id_=#{0}
- </select>
- <select id="exist" parameterType="string" resultType="int">
- select count(*) from base_job_information_info where id_=#{0}
- </select>
- <select id="list" resultMap="JobInformationInfoMap">
- select * from base_job_information_info
- </select>
- <select id="search" parameterType="hashmap" resultMap="JobInformationInfoMap">
- <![CDATA[
- select * from base_job_information_info
- ]]>
- <where>
- del_flag=false
- <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>
|