| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- <?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.RecruitInformationInfoDAO">
- <resultMap id="RecruitInformationInfoMap" type="com.jpsoft.employment.modules.base.entity.RecruitInformationInfo">
- <id property="id" column="id_" />
- <result property="enterpriseId" column="enterprise_id" />
- <result property="positionName" column="position_name" />
- <result property="salary" column="salary_" />
- <result property="settlementMethod" column="settlement_method" />
- <result property="industry" column="industry_" />
- <result property="recruitingNumbers" column="recruiting_numbers" />
- <result property="desc" column="desc" />
- <result property="contacts" column="contacts" />
- <result property="contactsPhone" column="contacts_phone" />
- <result property="workArea" column="work_area" />
- <result property="address" column="address_" />
- <result property="browseNumber" column="browse_number" />
- <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="RecruitInformationInfo">
- <!--
- <selectKey resultType="java.lang.String" order="BEFORE" keyProperty="id">
- select sys_guid() from dual
- </selectKey>
- -->
- <![CDATA[
- insert into base_recruit_information_info
- (id_,enterprise_id,position_name,salary_,settlement_method,industry_,recruiting_numbers,desc,contacts,contacts_phone,work_area,address_,browse_number,status_,create_by,create_time,update_by,update_time,del_flag)
- values
- (
- #{id,jdbcType=VARCHAR}
- ,#{enterpriseId,jdbcType=VARCHAR}
- ,#{positionName,jdbcType=VARCHAR}
- ,#{salary,jdbcType=VARCHAR}
- ,#{settlementMethod,jdbcType=VARCHAR}
- ,#{industry,jdbcType=VARCHAR}
- ,#{recruitingNumbers,jdbcType=VARCHAR}
- ,#{desc,jdbcType=VARCHAR}
- ,#{contacts,jdbcType=VARCHAR}
- ,#{contactsPhone,jdbcType=VARCHAR}
- ,#{workArea,jdbcType=VARCHAR}
- ,#{address,jdbcType=VARCHAR}
- ,#{browseNumber,jdbcType= NUMERIC }
- ,#{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_recruit_information_info where id_=#{id,jdbcType=VARCHAR}
- </delete>
- <update id="update" parameterType="RecruitInformationInfo">
- update base_recruit_information_info
- <set>
- <if test="enterpriseId!=null">
- enterprise_id=#{enterpriseId,jdbcType=VARCHAR},
- </if>
- <if test="positionName!=null">
- position_name=#{positionName,jdbcType=VARCHAR},
- </if>
- <if test="salary!=null">
- salary_=#{salary,jdbcType=VARCHAR},
- </if>
- <if test="settlementMethod!=null">
- settlement_method=#{settlementMethod,jdbcType=VARCHAR},
- </if>
- <if test="industry!=null">
- industry_=#{industry,jdbcType=VARCHAR},
- </if>
- <if test="recruitingNumbers!=null">
- recruiting_numbers=#{recruitingNumbers,jdbcType=VARCHAR},
- </if>
- <if test="desc!=null">
- desc=#{desc,jdbcType=VARCHAR},
- </if>
- <if test="contacts!=null">
- contacts=#{contacts,jdbcType=VARCHAR},
- </if>
- <if test="contactsPhone!=null">
- contacts_phone=#{contactsPhone,jdbcType=VARCHAR},
- </if>
- <if test="workArea!=null">
- work_area=#{workArea,jdbcType=VARCHAR},
- </if>
- <if test="address!=null">
- address_=#{address,jdbcType=VARCHAR},
- </if>
- <if test="browseNumber!=null">
- browse_number=#{browseNumber,jdbcType= NUMERIC },
- </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="RecruitInformationInfoMap">
- select
- id_,enterprise_id,position_name,salary_,settlement_method,industry_,recruiting_numbers,desc,contacts,contacts_phone,work_area,address_,browse_number,status_,create_by,create_time,update_by,update_time,del_flag from base_recruit_information_info where id_=#{0}
- </select>
- <select id="exist" parameterType="string" resultType="int">
- select count(*) from base_recruit_information_info where id_=#{0}
- </select>
- <select id="list" resultMap="RecruitInformationInfoMap">
- select * from base_recruit_information_info
- </select>
- <select id="search" parameterType="hashmap" resultMap="RecruitInformationInfoMap">
- <![CDATA[
- select * from base_recruit_information_info
- ]]>
- <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>
|