123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340 |
- <?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.bowintek.practice.mapper.SysTaskMapper">
- <resultMap id="BaseResultMap" type="com.bowintek.practice.model.SysTask">
- <id column="TaskID" jdbcType="VARCHAR" property="taskID" />
- <result column="UserID" jdbcType="VARCHAR" property="userID" />
- <result column="Title" jdbcType="VARCHAR" property="title" />
- <result column="KeyID" jdbcType="VARCHAR" property="keyID" />
- <result column="Url" jdbcType="VARCHAR" property="url" />
- <result column="RecordStatus" jdbcType="INTEGER" property="recordStatus" />
- <result column="CreateBy" jdbcType="VARCHAR" property="createBy" />
- <result column="CreateTime" jdbcType="TIMESTAMP" property="createTime" />
- <result column="ReturnUrl" jdbcType="VARCHAR" property="returnUrl" />
- </resultMap>
- <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.bowintek.practice.model.SysTask">
- <result column="Context" jdbcType="LONGVARCHAR" property="context" />
- </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">
- TaskID, UserID, Title, KeyID, Url, RecordStatus, CreateBy, CreateTime, ReturnUrl
- </sql>
- <sql id="Blob_Column_List">
- Context
- </sql>
- <select id="selectByExampleWithBLOBs" parameterType="com.bowintek.practice.model.SysTaskExample" resultMap="ResultMapWithBLOBs">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- ,
- <include refid="Blob_Column_List" />
- from sys_task
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- <if test="orderByClause != null">
- order by ${orderByClause}
- </if>
- </select>
- <select id="selectByExample" parameterType="com.bowintek.practice.model.SysTaskExample" resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from sys_task
- <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="ResultMapWithBLOBs">
- select
- <include refid="Base_Column_List" />
- ,
- <include refid="Blob_Column_List" />
- from sys_task
- where TaskID = #{taskID,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete from sys_task
- where TaskID = #{taskID,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.bowintek.practice.model.SysTaskExample">
- delete from sys_task
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.bowintek.practice.model.SysTask">
- insert into sys_task (TaskID, UserID, Title,
- KeyID, Url, RecordStatus,
- CreateBy, CreateTime, ReturnUrl,
- Context)
- values (#{taskID,jdbcType=VARCHAR}, #{userID,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR},
- #{keyID,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{recordStatus,jdbcType=INTEGER},
- #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{returnUrl,jdbcType=VARCHAR},
- #{context,jdbcType=LONGVARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.bowintek.practice.model.SysTask">
- insert into sys_task
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="taskID != null">
- TaskID,
- </if>
- <if test="userID != null">
- UserID,
- </if>
- <if test="title != null">
- Title,
- </if>
- <if test="keyID != null">
- KeyID,
- </if>
- <if test="url != null">
- Url,
- </if>
- <if test="recordStatus != null">
- RecordStatus,
- </if>
- <if test="createBy != null">
- CreateBy,
- </if>
- <if test="createTime != null">
- CreateTime,
- </if>
- <if test="returnUrl != null">
- ReturnUrl,
- </if>
- <if test="context != null">
- Context,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="taskID != null">
- #{taskID,jdbcType=VARCHAR},
- </if>
- <if test="userID != null">
- #{userID,jdbcType=VARCHAR},
- </if>
- <if test="title != null">
- #{title,jdbcType=VARCHAR},
- </if>
- <if test="keyID != null">
- #{keyID,jdbcType=VARCHAR},
- </if>
- <if test="url != null">
- #{url,jdbcType=VARCHAR},
- </if>
- <if test="recordStatus != null">
- #{recordStatus,jdbcType=INTEGER},
- </if>
- <if test="createBy != null">
- #{createBy,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="returnUrl != null">
- #{returnUrl,jdbcType=VARCHAR},
- </if>
- <if test="context != null">
- #{context,jdbcType=LONGVARCHAR},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.bowintek.practice.model.SysTaskExample" resultType="java.lang.Long">
- select count(*) from sys_task
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update sys_task
- <set>
- <if test="row.taskID != null">
- TaskID = #{row.taskID,jdbcType=VARCHAR},
- </if>
- <if test="row.userID != null">
- UserID = #{row.userID,jdbcType=VARCHAR},
- </if>
- <if test="row.title != null">
- Title = #{row.title,jdbcType=VARCHAR},
- </if>
- <if test="row.keyID != null">
- KeyID = #{row.keyID,jdbcType=VARCHAR},
- </if>
- <if test="row.url != null">
- Url = #{row.url,jdbcType=VARCHAR},
- </if>
- <if test="row.recordStatus != null">
- RecordStatus = #{row.recordStatus,jdbcType=INTEGER},
- </if>
- <if test="row.createBy != null">
- CreateBy = #{row.createBy,jdbcType=VARCHAR},
- </if>
- <if test="row.createTime != null">
- CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="row.returnUrl != null">
- ReturnUrl = #{row.returnUrl,jdbcType=VARCHAR},
- </if>
- <if test="row.context != null">
- Context = #{row.context,jdbcType=LONGVARCHAR},
- </if>
- </set>
- <if test="example != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExampleWithBLOBs" parameterType="map">
- update sys_task
- set TaskID = #{row.taskID,jdbcType=VARCHAR},
- UserID = #{row.userID,jdbcType=VARCHAR},
- Title = #{row.title,jdbcType=VARCHAR},
- KeyID = #{row.keyID,jdbcType=VARCHAR},
- Url = #{row.url,jdbcType=VARCHAR},
- RecordStatus = #{row.recordStatus,jdbcType=INTEGER},
- CreateBy = #{row.createBy,jdbcType=VARCHAR},
- CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
- ReturnUrl = #{row.returnUrl,jdbcType=VARCHAR},
- Context = #{row.context,jdbcType=LONGVARCHAR}
- <if test="example != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- update sys_task
- set TaskID = #{row.taskID,jdbcType=VARCHAR},
- UserID = #{row.userID,jdbcType=VARCHAR},
- Title = #{row.title,jdbcType=VARCHAR},
- KeyID = #{row.keyID,jdbcType=VARCHAR},
- Url = #{row.url,jdbcType=VARCHAR},
- RecordStatus = #{row.recordStatus,jdbcType=INTEGER},
- CreateBy = #{row.createBy,jdbcType=VARCHAR},
- CreateTime = #{row.createTime,jdbcType=TIMESTAMP},
- ReturnUrl = #{row.returnUrl,jdbcType=VARCHAR}
- <if test="example != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.bowintek.practice.model.SysTask">
- update sys_task
- <set>
- <if test="userID != null">
- UserID = #{userID,jdbcType=VARCHAR},
- </if>
- <if test="title != null">
- Title = #{title,jdbcType=VARCHAR},
- </if>
- <if test="keyID != null">
- KeyID = #{keyID,jdbcType=VARCHAR},
- </if>
- <if test="url != null">
- Url = #{url,jdbcType=VARCHAR},
- </if>
- <if test="recordStatus != null">
- RecordStatus = #{recordStatus,jdbcType=INTEGER},
- </if>
- <if test="createBy != null">
- CreateBy = #{createBy,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null">
- CreateTime = #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="returnUrl != null">
- ReturnUrl = #{returnUrl,jdbcType=VARCHAR},
- </if>
- <if test="context != null">
- Context = #{context,jdbcType=LONGVARCHAR},
- </if>
- </set>
- where TaskID = #{taskID,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.bowintek.practice.model.SysTask">
- update sys_task
- set UserID = #{userID,jdbcType=VARCHAR},
- Title = #{title,jdbcType=VARCHAR},
- KeyID = #{keyID,jdbcType=VARCHAR},
- Url = #{url,jdbcType=VARCHAR},
- RecordStatus = #{recordStatus,jdbcType=INTEGER},
- CreateBy = #{createBy,jdbcType=VARCHAR},
- CreateTime = #{createTime,jdbcType=TIMESTAMP},
- ReturnUrl = #{returnUrl,jdbcType=VARCHAR},
- Context = #{context,jdbcType=LONGVARCHAR}
- where TaskID = #{taskID,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.bowintek.practice.model.SysTask">
- update sys_task
- set UserID = #{userID,jdbcType=VARCHAR},
- Title = #{title,jdbcType=VARCHAR},
- KeyID = #{keyID,jdbcType=VARCHAR},
- Url = #{url,jdbcType=VARCHAR},
- RecordStatus = #{recordStatus,jdbcType=INTEGER},
- CreateBy = #{createBy,jdbcType=VARCHAR},
- CreateTime = #{createTime,jdbcType=TIMESTAMP},
- ReturnUrl = #{returnUrl,jdbcType=VARCHAR}
- where TaskID = #{taskID,jdbcType=VARCHAR}
- </update>
- </mapper>
|