123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353 |
- <?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.PcDotaskMapper">
- <resultMap id="BaseResultMap" type="com.hz.employmentsite.model.PcDotask">
- <id column="DotaskID" jdbcType="VARCHAR" property="dotaskID" />
- <result column="WorkTypeID" jdbcType="INTEGER" property="workTypeID" />
- <result column="RegionCode" jdbcType="VARCHAR" property="regionCode" />
- <result column="StreetCode" jdbcType="VARCHAR" property="streetCode" />
- <result column="Content" jdbcType="VARCHAR" property="content" />
- <result column="SiteID" jdbcType="VARCHAR" property="siteID" />
- <result column="DotaskName" jdbcType="VARCHAR" property="dotaskName" />
- <result column="FinishTime" jdbcType="TIMESTAMP" property="finishTime" />
- <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="TaskStatus" jdbcType="INTEGER" property="taskStatus" />
- <result column="taskLevel" jdbcType="INTEGER" property="taskLevel" />
- </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">
- DotaskID, WorkTypeID, RegionCode, StreetCode, Content, SiteID, DotaskName, FinishTime,
- CreateUserID, CreateTime, ModifyUserID, ModifyTime, TaskStatus, taskLevel
- </sql>
- <select id="selectByExample" parameterType="com.hz.employmentsite.model.PcDotaskExample" resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from pc_dotask
- <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_dotask
- where DotaskID = #{dotaskID,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete from pc_dotask
- where DotaskID = #{dotaskID,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.hz.employmentsite.model.PcDotaskExample">
- delete from pc_dotask
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.hz.employmentsite.model.PcDotask">
- insert into pc_dotask (DotaskID, WorkTypeID, RegionCode,
- StreetCode, Content, SiteID,
- DotaskName, FinishTime, CreateUserID,
- CreateTime, ModifyUserID, ModifyTime,
- TaskStatus, taskLevel)
- values (#{dotaskID,jdbcType=VARCHAR}, #{workTypeID,jdbcType=INTEGER}, #{regionCode,jdbcType=VARCHAR},
- #{streetCode,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, #{siteID,jdbcType=VARCHAR},
- #{dotaskName,jdbcType=VARCHAR}, #{finishTime,jdbcType=TIMESTAMP}, #{createUserID,jdbcType=VARCHAR},
- #{createTime,jdbcType=TIMESTAMP}, #{modifyUserID,jdbcType=VARCHAR}, #{modifyTime,jdbcType=TIMESTAMP},
- #{taskStatus,jdbcType=INTEGER}, #{taskLevel,jdbcType=INTEGER})
- </insert>
- <insert id="insertSelective" parameterType="com.hz.employmentsite.model.PcDotask">
- insert into pc_dotask
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="dotaskID != null">
- DotaskID,
- </if>
- <if test="workTypeID != null">
- WorkTypeID,
- </if>
- <if test="regionCode != null">
- RegionCode,
- </if>
- <if test="streetCode != null">
- StreetCode,
- </if>
- <if test="content != null">
- Content,
- </if>
- <if test="siteID != null">
- SiteID,
- </if>
- <if test="dotaskName != null">
- DotaskName,
- </if>
- <if test="finishTime != null">
- FinishTime,
- </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="taskStatus != null">
- TaskStatus,
- </if>
- <if test="taskLevel != null">
- taskLevel,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="dotaskID != null">
- #{dotaskID,jdbcType=VARCHAR},
- </if>
- <if test="workTypeID != null">
- #{workTypeID,jdbcType=INTEGER},
- </if>
- <if test="regionCode != null">
- #{regionCode,jdbcType=VARCHAR},
- </if>
- <if test="streetCode != null">
- #{streetCode,jdbcType=VARCHAR},
- </if>
- <if test="content != null">
- #{content,jdbcType=VARCHAR},
- </if>
- <if test="siteID != null">
- #{siteID,jdbcType=VARCHAR},
- </if>
- <if test="dotaskName != null">
- #{dotaskName,jdbcType=VARCHAR},
- </if>
- <if test="finishTime != null">
- #{finishTime,jdbcType=TIMESTAMP},
- </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="taskStatus != null">
- #{taskStatus,jdbcType=INTEGER},
- </if>
- <if test="taskLevel != null">
- #{taskLevel,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.hz.employmentsite.model.PcDotaskExample" resultType="java.lang.Long">
- select count(*) from pc_dotask
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update pc_dotask
- <set>
- <if test="row.dotaskID != null">
- DotaskID = #{row.dotaskID,jdbcType=VARCHAR},
- </if>
- <if test="row.workTypeID != null">
- WorkTypeID = #{row.workTypeID,jdbcType=INTEGER},
- </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.content != null">
- Content = #{row.content,jdbcType=VARCHAR},
- </if>
- <if test="row.siteID != null">
- SiteID = #{row.siteID,jdbcType=VARCHAR},
- </if>
- <if test="row.dotaskName != null">
- DotaskName = #{row.dotaskName,jdbcType=VARCHAR},
- </if>
- <if test="row.finishTime != null">
- FinishTime = #{row.finishTime,jdbcType=TIMESTAMP},
- </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.taskStatus != null">
- TaskStatus = #{row.taskStatus,jdbcType=INTEGER},
- </if>
- <if test="row.taskLevel != null">
- taskLevel = #{row.taskLevel,jdbcType=INTEGER},
- </if>
- </set>
- <if test="example != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- update pc_dotask
- set DotaskID = #{row.dotaskID,jdbcType=VARCHAR},
- WorkTypeID = #{row.workTypeID,jdbcType=INTEGER},
- RegionCode = #{row.regionCode,jdbcType=VARCHAR},
- StreetCode = #{row.streetCode,jdbcType=VARCHAR},
- Content = #{row.content,jdbcType=VARCHAR},
- SiteID = #{row.siteID,jdbcType=VARCHAR},
- DotaskName = #{row.dotaskName,jdbcType=VARCHAR},
- FinishTime = #{row.finishTime,jdbcType=TIMESTAMP},
- CreateUserID = #{row.createUserID,jdbcType=VARCHAR},
- CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
- ModifyUserID = #{row.modifyUserID,jdbcType=VARCHAR},
- ModifyTime = #{row.modifyTime,jdbcType=TIMESTAMP},
- TaskStatus = #{row.taskStatus,jdbcType=INTEGER},
- taskLevel = #{row.taskLevel,jdbcType=INTEGER}
- <if test="example != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.hz.employmentsite.model.PcDotask">
- update pc_dotask
- <set>
- <if test="workTypeID != null">
- WorkTypeID = #{workTypeID,jdbcType=INTEGER},
- </if>
- <if test="regionCode != null">
- RegionCode = #{regionCode,jdbcType=VARCHAR},
- </if>
- <if test="streetCode != null">
- StreetCode = #{streetCode,jdbcType=VARCHAR},
- </if>
- <if test="content != null">
- Content = #{content,jdbcType=VARCHAR},
- </if>
- <if test="siteID != null">
- SiteID = #{siteID,jdbcType=VARCHAR},
- </if>
- <if test="dotaskName != null">
- DotaskName = #{dotaskName,jdbcType=VARCHAR},
- </if>
- <if test="finishTime != null">
- FinishTime = #{finishTime,jdbcType=TIMESTAMP},
- </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="taskStatus != null">
- TaskStatus = #{taskStatus,jdbcType=INTEGER},
- </if>
- <if test="taskLevel != null">
- taskLevel = #{taskLevel,jdbcType=INTEGER},
- </if>
- </set>
- where DotaskID = #{dotaskID,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.hz.employmentsite.model.PcDotask">
- update pc_dotask
- set WorkTypeID = #{workTypeID,jdbcType=INTEGER},
- RegionCode = #{regionCode,jdbcType=VARCHAR},
- StreetCode = #{streetCode,jdbcType=VARCHAR},
- Content = #{content,jdbcType=VARCHAR},
- SiteID = #{siteID,jdbcType=VARCHAR},
- DotaskName = #{dotaskName,jdbcType=VARCHAR},
- FinishTime = #{finishTime,jdbcType=TIMESTAMP},
- CreateUserID = #{createUserID,jdbcType=VARCHAR},
- CreateTime = #{createTime,jdbcType=TIMESTAMP},
- ModifyUserID = #{modifyUserID,jdbcType=VARCHAR},
- ModifyTime = #{modifyTime,jdbcType=TIMESTAMP},
- TaskStatus = #{taskStatus,jdbcType=INTEGER},
- taskLevel = #{taskLevel,jdbcType=INTEGER}
- where DotaskID = #{dotaskID,jdbcType=VARCHAR}
- </update>
- </mapper>
|