123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401 |
- <?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.hz.employmentsite.mapper.PcJobhuntMapper">
- <resultMap id="BaseResultMap" type="com.hz.employmentsite.model.PcJobhunt">
- <id column="JobHuntID" jdbcType="VARCHAR" property="jobHuntID" />
- <result column="JobUserID" jdbcType="VARCHAR" property="jobUserID" />
- <result column="ProfessionID" jdbcType="VARCHAR" property="professionID" />
- <result column="WorkCode" jdbcType="VARCHAR" property="workCode" />
- <result column="WorkName" jdbcType="VARCHAR" property="workName" />
- <result column="AreaWork" jdbcType="VARCHAR" property="areaWork" />
- <result column="InDate" jdbcType="TIMESTAMP" property="inDate" />
- <result column="workYear" jdbcType="DECIMAL" property="workYear" />
- <result column="JobHuntType" jdbcType="INTEGER" property="jobHuntType" />
- <result column="JobUserType" jdbcType="INTEGER" property="jobUserType" />
- <result column="MinSalary" jdbcType="DECIMAL" property="minSalary" />
- <result column="MaxSalary" jdbcType="DECIMAL" property="maxSalary" />
- <result column="CreateUserID" jdbcType="VARCHAR" property="createUserID" />
- <result column="CreateTime" jdbcType="TIMESTAMP" property="createTime" />
- <result column="ModifyUserID" jdbcType="VARCHAR" property="modifyUserID" />
- <result column="ModifyTime" jdbcType="TIMESTAMP" property="modifyTime" />
- <result column="OtherDemand" jdbcType="VARCHAR" property="otherDemand" />
- </resultMap>
- <sql id="Example_Where_Clause">
- <where>
- <foreach collection="oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <foreach collection="criteria.criteria" item="criterion">
- <choose>
- <when test="criterion.noValue">
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue">
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue">
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue">
- and ${criterion.condition}
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Update_By_Example_Where_Clause">
- <where>
- <foreach collection="example.oredCriteria" item="criteria" separator="or">
- <if test="criteria.valid">
- <trim prefix="(" prefixOverrides="and" suffix=")">
- <foreach collection="criteria.criteria" item="criterion">
- <choose>
- <when test="criterion.noValue">
- and ${criterion.condition}
- </when>
- <when test="criterion.singleValue">
- and ${criterion.condition} #{criterion.value}
- </when>
- <when test="criterion.betweenValue">
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
- </when>
- <when test="criterion.listValue">
- and ${criterion.condition}
- <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
- #{listItem}
- </foreach>
- </when>
- </choose>
- </foreach>
- </trim>
- </if>
- </foreach>
- </where>
- </sql>
- <sql id="Base_Column_List">
- JobHuntID, JobUserID, ProfessionID, WorkCode, WorkName, AreaWork, InDate, workYear,
- JobHuntType, JobUserType, MinSalary, MaxSalary, CreateUserID, CreateTime, ModifyUserID,
- ModifyTime, OtherDemand
- </sql>
- <select id="selectByExample" parameterType="com.hz.employmentsite.model.PcJobhuntExample" resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from pc_jobhunt
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- <if test="orderByClause != null">
- order by ${orderByClause}
- </if>
- </select>
- <select id="selectByPrimaryKey" parameterType="java.lang.String" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from pc_jobhunt
- where JobHuntID = #{jobHuntID,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete from pc_jobhunt
- where JobHuntID = #{jobHuntID,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.hz.employmentsite.model.PcJobhuntExample">
- delete from pc_jobhunt
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.hz.employmentsite.model.PcJobhunt">
- insert into pc_jobhunt (JobHuntID, JobUserID, ProfessionID,
- WorkCode, WorkName, AreaWork,
- InDate, workYear, JobHuntType,
- JobUserType, MinSalary, MaxSalary,
- CreateUserID, CreateTime, ModifyUserID,
- ModifyTime, OtherDemand)
- values (#{jobHuntID,jdbcType=VARCHAR}, #{jobUserID,jdbcType=VARCHAR}, #{professionID,jdbcType=VARCHAR},
- #{workCode,jdbcType=VARCHAR}, #{workName,jdbcType=VARCHAR}, #{areaWork,jdbcType=VARCHAR},
- #{inDate,jdbcType=TIMESTAMP}, #{workYear,jdbcType=DECIMAL}, #{jobHuntType,jdbcType=INTEGER},
- #{jobUserType,jdbcType=INTEGER}, #{minSalary,jdbcType=DECIMAL}, #{maxSalary,jdbcType=DECIMAL},
- #{createUserID,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{modifyUserID,jdbcType=VARCHAR},
- #{modifyTime,jdbcType=TIMESTAMP}, #{otherDemand,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.hz.employmentsite.model.PcJobhunt">
- insert into pc_jobhunt
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="jobHuntID != null">
- JobHuntID,
- </if>
- <if test="jobUserID != null">
- JobUserID,
- </if>
- <if test="professionID != null">
- ProfessionID,
- </if>
- <if test="workCode != null">
- WorkCode,
- </if>
- <if test="workName != null">
- WorkName,
- </if>
- <if test="areaWork != null">
- AreaWork,
- </if>
- <if test="inDate != null">
- InDate,
- </if>
- <if test="workYear != null">
- workYear,
- </if>
- <if test="jobHuntType != null">
- JobHuntType,
- </if>
- <if test="jobUserType != null">
- JobUserType,
- </if>
- <if test="minSalary != null">
- MinSalary,
- </if>
- <if test="maxSalary != null">
- MaxSalary,
- </if>
- <if test="createUserID != null">
- CreateUserID,
- </if>
- <if test="createTime != null">
- CreateTime,
- </if>
- <if test="modifyUserID != null">
- ModifyUserID,
- </if>
- <if test="modifyTime != null">
- ModifyTime,
- </if>
- <if test="otherDemand != null">
- OtherDemand,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="jobHuntID != null">
- #{jobHuntID,jdbcType=VARCHAR},
- </if>
- <if test="jobUserID != null">
- #{jobUserID,jdbcType=VARCHAR},
- </if>
- <if test="professionID != null">
- #{professionID,jdbcType=VARCHAR},
- </if>
- <if test="workCode != null">
- #{workCode,jdbcType=VARCHAR},
- </if>
- <if test="workName != null">
- #{workName,jdbcType=VARCHAR},
- </if>
- <if test="areaWork != null">
- #{areaWork,jdbcType=VARCHAR},
- </if>
- <if test="inDate != null">
- #{inDate,jdbcType=TIMESTAMP},
- </if>
- <if test="workYear != null">
- #{workYear,jdbcType=DECIMAL},
- </if>
- <if test="jobHuntType != null">
- #{jobHuntType,jdbcType=INTEGER},
- </if>
- <if test="jobUserType != null">
- #{jobUserType,jdbcType=INTEGER},
- </if>
- <if test="minSalary != null">
- #{minSalary,jdbcType=DECIMAL},
- </if>
- <if test="maxSalary != null">
- #{maxSalary,jdbcType=DECIMAL},
- </if>
- <if test="createUserID != null">
- #{createUserID,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="modifyUserID != null">
- #{modifyUserID,jdbcType=VARCHAR},
- </if>
- <if test="modifyTime != null">
- #{modifyTime,jdbcType=TIMESTAMP},
- </if>
- <if test="otherDemand != null">
- #{otherDemand,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.hz.employmentsite.model.PcJobhuntExample" resultType="java.lang.Long">
- select count(*) from pc_jobhunt
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update pc_jobhunt
- <set>
- <if test="row.jobHuntID != null">
- JobHuntID = #{row.jobHuntID,jdbcType=VARCHAR},
- </if>
- <if test="row.jobUserID != null">
- JobUserID = #{row.jobUserID,jdbcType=VARCHAR},
- </if>
- <if test="row.professionID != null">
- ProfessionID = #{row.professionID,jdbcType=VARCHAR},
- </if>
- <if test="row.workCode != null">
- WorkCode = #{row.workCode,jdbcType=VARCHAR},
- </if>
- <if test="row.workName != null">
- WorkName = #{row.workName,jdbcType=VARCHAR},
- </if>
- <if test="row.areaWork != null">
- AreaWork = #{row.areaWork,jdbcType=VARCHAR},
- </if>
- <if test="row.inDate != null">
- InDate = #{row.inDate,jdbcType=TIMESTAMP},
- </if>
- <if test="row.workYear != null">
- workYear = #{row.workYear,jdbcType=DECIMAL},
- </if>
- <if test="row.jobHuntType != null">
- JobHuntType = #{row.jobHuntType,jdbcType=INTEGER},
- </if>
- <if test="row.jobUserType != null">
- JobUserType = #{row.jobUserType,jdbcType=INTEGER},
- </if>
- <if test="row.minSalary != null">
- MinSalary = #{row.minSalary,jdbcType=DECIMAL},
- </if>
- <if test="row.maxSalary != null">
- MaxSalary = #{row.maxSalary,jdbcType=DECIMAL},
- </if>
- <if test="row.createUserID != null">
- CreateUserID = #{row.createUserID,jdbcType=VARCHAR},
- </if>
- <if test="row.createTime != null">
- CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="row.modifyUserID != null">
- ModifyUserID = #{row.modifyUserID,jdbcType=VARCHAR},
- </if>
- <if test="row.modifyTime != null">
- ModifyTime = #{row.modifyTime,jdbcType=TIMESTAMP},
- </if>
- <if test="row.otherDemand != null">
- OtherDemand = #{row.otherDemand,jdbcType=VARCHAR},
- </if>
- </set>
- <if test="example != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- update pc_jobhunt
- set JobHuntID = #{row.jobHuntID,jdbcType=VARCHAR},
- JobUserID = #{row.jobUserID,jdbcType=VARCHAR},
- ProfessionID = #{row.professionID,jdbcType=VARCHAR},
- WorkCode = #{row.workCode,jdbcType=VARCHAR},
- WorkName = #{row.workName,jdbcType=VARCHAR},
- AreaWork = #{row.areaWork,jdbcType=VARCHAR},
- InDate = #{row.inDate,jdbcType=TIMESTAMP},
- workYear = #{row.workYear,jdbcType=DECIMAL},
- JobHuntType = #{row.jobHuntType,jdbcType=INTEGER},
- JobUserType = #{row.jobUserType,jdbcType=INTEGER},
- MinSalary = #{row.minSalary,jdbcType=DECIMAL},
- MaxSalary = #{row.maxSalary,jdbcType=DECIMAL},
- CreateUserID = #{row.createUserID,jdbcType=VARCHAR},
- CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
- ModifyUserID = #{row.modifyUserID,jdbcType=VARCHAR},
- ModifyTime = #{row.modifyTime,jdbcType=TIMESTAMP},
- OtherDemand = #{row.otherDemand,jdbcType=VARCHAR}
- <if test="example != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.hz.employmentsite.model.PcJobhunt">
- update pc_jobhunt
- <set>
- <if test="jobUserID != null">
- JobUserID = #{jobUserID,jdbcType=VARCHAR},
- </if>
- <if test="professionID != null">
- ProfessionID = #{professionID,jdbcType=VARCHAR},
- </if>
- <if test="workCode != null">
- WorkCode = #{workCode,jdbcType=VARCHAR},
- </if>
- <if test="workName != null">
- WorkName = #{workName,jdbcType=VARCHAR},
- </if>
- <if test="areaWork != null">
- AreaWork = #{areaWork,jdbcType=VARCHAR},
- </if>
- <if test="inDate != null">
- InDate = #{inDate,jdbcType=TIMESTAMP},
- </if>
- <if test="workYear != null">
- workYear = #{workYear,jdbcType=DECIMAL},
- </if>
- <if test="jobHuntType != null">
- JobHuntType = #{jobHuntType,jdbcType=INTEGER},
- </if>
- <if test="jobUserType != null">
- JobUserType = #{jobUserType,jdbcType=INTEGER},
- </if>
- <if test="minSalary != null">
- MinSalary = #{minSalary,jdbcType=DECIMAL},
- </if>
- <if test="maxSalary != null">
- MaxSalary = #{maxSalary,jdbcType=DECIMAL},
- </if>
- <if test="createUserID != null">
- CreateUserID = #{createUserID,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- CreateTime = #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="modifyUserID != null">
- ModifyUserID = #{modifyUserID,jdbcType=VARCHAR},
- </if>
- <if test="modifyTime != null">
- ModifyTime = #{modifyTime,jdbcType=TIMESTAMP},
- </if>
- <if test="otherDemand != null">
- OtherDemand = #{otherDemand,jdbcType=VARCHAR},
- </if>
- </set>
- where JobHuntID = #{jobHuntID,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.hz.employmentsite.model.PcJobhunt">
- update pc_jobhunt
- set JobUserID = #{jobUserID,jdbcType=VARCHAR},
- ProfessionID = #{professionID,jdbcType=VARCHAR},
- WorkCode = #{workCode,jdbcType=VARCHAR},
- WorkName = #{workName,jdbcType=VARCHAR},
- AreaWork = #{areaWork,jdbcType=VARCHAR},
- InDate = #{inDate,jdbcType=TIMESTAMP},
- workYear = #{workYear,jdbcType=DECIMAL},
- JobHuntType = #{jobHuntType,jdbcType=INTEGER},
- JobUserType = #{jobUserType,jdbcType=INTEGER},
- MinSalary = #{minSalary,jdbcType=DECIMAL},
- MaxSalary = #{maxSalary,jdbcType=DECIMAL},
- CreateUserID = #{createUserID,jdbcType=VARCHAR},
- CreateTime = #{createTime,jdbcType=TIMESTAMP},
- ModifyUserID = #{modifyUserID,jdbcType=VARCHAR},
- ModifyTime = #{modifyTime,jdbcType=TIMESTAMP},
- OtherDemand = #{otherDemand,jdbcType=VARCHAR}
- where JobHuntID = #{jobHuntID,jdbcType=VARCHAR}
- </update>
- </mapper>
|