123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307 |
- <?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.PcDoworkMapper">
- <resultMap id="BaseResultMap" type="com.hz.employmentsite.model.PcDowork">
- <id column="DoworkID" jdbcType="VARCHAR" property="doworkID" />
- <result column="SiteUserID" jdbcType="VARCHAR" property="siteUserID" />
- <result column="DoTypeID" jdbcType="INTEGER" property="doTypeID" />
- <result column="WorkContent" jdbcType="VARCHAR" property="workContent" />
- <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="RegionCode" jdbcType="VARCHAR" property="regionCode" />
- <result column="StreetCode" jdbcType="VARCHAR" property="streetCode" />
- <result column="WorkTime" jdbcType="TIMESTAMP" property="workTime" />
- </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">
- DoworkID, SiteUserID, DoTypeID, WorkContent, CreateUserID, CreateTime, ModifyUserID,
- ModifyTime, RegionCode, StreetCode, WorkTime
- </sql>
- <select id="selectByExample" parameterType="com.hz.employmentsite.model.PcDoworkExample" resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from pc_dowork
- <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_dowork
- where DoworkID = #{doworkID,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete from pc_dowork
- where DoworkID = #{doworkID,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.hz.employmentsite.model.PcDoworkExample">
- delete from pc_dowork
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.hz.employmentsite.model.PcDowork">
- insert into pc_dowork (DoworkID, SiteUserID, DoTypeID,
- WorkContent, CreateUserID, CreateTime,
- ModifyUserID, ModifyTime, RegionCode,
- StreetCode, WorkTime)
- values (#{doworkID,jdbcType=VARCHAR}, #{siteUserID,jdbcType=VARCHAR}, #{doTypeID,jdbcType=INTEGER},
- #{workContent,jdbcType=VARCHAR}, #{createUserID,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
- #{modifyUserID,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP}, #{regionCode,jdbcType=VARCHAR},
- #{streetCode,jdbcType=VARCHAR}, #{workTime,jdbcType=TIMESTAMP})
- </insert>
- <insert id="insertSelective" parameterType="com.hz.employmentsite.model.PcDowork">
- insert into pc_dowork
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="doworkID != null">
- DoworkID,
- </if>
- <if test="siteUserID != null">
- SiteUserID,
- </if>
- <if test="doTypeID != null">
- DoTypeID,
- </if>
- <if test="workContent != null">
- WorkContent,
- </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="regionCode != null">
- RegionCode,
- </if>
- <if test="streetCode != null">
- StreetCode,
- </if>
- <if test="workTime != null">
- WorkTime,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="doworkID != null">
- #{doworkID,jdbcType=VARCHAR},
- </if>
- <if test="siteUserID != null">
- #{siteUserID,jdbcType=VARCHAR},
- </if>
- <if test="doTypeID != null">
- #{doTypeID,jdbcType=INTEGER},
- </if>
- <if test="workContent != null">
- #{workContent,jdbcType=VARCHAR},
- </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="regionCode != null">
- #{regionCode,jdbcType=VARCHAR},
- </if>
- <if test="streetCode != null">
- #{streetCode,jdbcType=VARCHAR},
- </if>
- <if test="workTime != null">
- #{workTime,jdbcType=TIMESTAMP},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.hz.employmentsite.model.PcDoworkExample" resultType="java.lang.Long">
- select count(*) from pc_dowork
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update pc_dowork
- <set>
- <if test="row.doworkID != null">
- DoworkID = #{row.doworkID,jdbcType=VARCHAR},
- </if>
- <if test="row.siteUserID != null">
- SiteUserID = #{row.siteUserID,jdbcType=VARCHAR},
- </if>
- <if test="row.doTypeID != null">
- DoTypeID = #{row.doTypeID,jdbcType=INTEGER},
- </if>
- <if test="row.workContent != null">
- WorkContent = #{row.workContent,jdbcType=VARCHAR},
- </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.regionCode != null">
- RegionCode = #{row.regionCode,jdbcType=VARCHAR},
- </if>
- <if test="row.streetCode != null">
- StreetCode = #{row.streetCode,jdbcType=VARCHAR},
- </if>
- <if test="row.workTime != null">
- WorkTime = #{row.workTime,jdbcType=TIMESTAMP},
- </if>
- </set>
- <if test="example != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- update pc_dowork
- set DoworkID = #{row.doworkID,jdbcType=VARCHAR},
- SiteUserID = #{row.siteUserID,jdbcType=VARCHAR},
- DoTypeID = #{row.doTypeID,jdbcType=INTEGER},
- WorkContent = #{row.workContent,jdbcType=VARCHAR},
- CreateUserID = #{row.createUserID,jdbcType=VARCHAR},
- CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
- ModifyUserID = #{row.modifyUserID,jdbcType=VARCHAR},
- ModifyTime = #{row.modifyTime,jdbcType=TIMESTAMP},
- RegionCode = #{row.regionCode,jdbcType=VARCHAR},
- StreetCode = #{row.streetCode,jdbcType=VARCHAR},
- WorkTime = #{row.workTime,jdbcType=TIMESTAMP}
- <if test="example != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.hz.employmentsite.model.PcDowork">
- update pc_dowork
- <set>
- <if test="siteUserID != null">
- SiteUserID = #{siteUserID,jdbcType=VARCHAR},
- </if>
- <if test="doTypeID != null">
- DoTypeID = #{doTypeID,jdbcType=INTEGER},
- </if>
- <if test="workContent != null">
- WorkContent = #{workContent,jdbcType=VARCHAR},
- </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="regionCode != null">
- RegionCode = #{regionCode,jdbcType=VARCHAR},
- </if>
- <if test="streetCode != null">
- StreetCode = #{streetCode,jdbcType=VARCHAR},
- </if>
- <if test="workTime != null">
- WorkTime = #{workTime,jdbcType=TIMESTAMP},
- </if>
- </set>
- where DoworkID = #{doworkID,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.hz.employmentsite.model.PcDowork">
- update pc_dowork
- set SiteUserID = #{siteUserID,jdbcType=VARCHAR},
- DoTypeID = #{doTypeID,jdbcType=INTEGER},
- WorkContent = #{workContent,jdbcType=VARCHAR},
- CreateUserID = #{createUserID,jdbcType=VARCHAR},
- CreateTime = #{createTime,jdbcType=TIMESTAMP},
- ModifyUserID = #{modifyUserID,jdbcType=VARCHAR},
- ModifyTime = #{modifyTime,jdbcType=TIMESTAMP},
- RegionCode = #{regionCode,jdbcType=VARCHAR},
- StreetCode = #{streetCode,jdbcType=VARCHAR},
- WorkTime = #{workTime,jdbcType=TIMESTAMP}
- where DoworkID = #{doworkID,jdbcType=VARCHAR}
- </update>
- </mapper>
|