| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295 |
- <?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.ydtech.modules.admin.dao.SysCbitLogMapper">
- <resultMap id="BaseResultMap" type="com.ydtech.modules.admin.model.SysCbitLog">
- <id column="req_no" jdbcType="VARCHAR" property="reqNo"/>
- <result column="usercode" jdbcType="VARCHAR" property="usercode"/>
- <result column="req_url" jdbcType="VARCHAR" property="reqUrl"/>
- <result column="description" jdbcType="VARCHAR" property="description"/>
- <result column="response" jdbcType="VARCHAR" property="response"/>
- <result column="createtime" jdbcType="TIMESTAMP" property="createtime"/>
- </resultMap>
- <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.ydtech.modules.admin.model.SysCbitLog">
- <result column="req_param" jdbcType="LONGVARCHAR" property="reqParam"/>
- </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">
- req_no, usercode, req_url, description, response, createtime
- </sql>
- <sql id="Blob_Column_List">
- req_param
- </sql>
- <select id="selectByExampleWithBLOBs" parameterType="com.ydtech.modules.admin.model.SysCbitLogExample"
- resultMap="ResultMapWithBLOBs">
- select
- <if test="distinct">
- distinct
- </if>
- 'true' as QUERYID,
- <include refid="Base_Column_List"/>
- ,
- <include refid="Blob_Column_List"/>
- from sys_cbit_log
- <if test="_parameter != null">
- <include refid="Example_Where_Clause"/>
- </if>
- <if test="orderByClause != null">
- order by ${orderByClause}
- </if>
- </select>
- <select id="selectByExample" parameterType="com.ydtech.modules.admin.model.SysCbitLogExample"
- resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- 'true' as QUERYID,
- <include refid="Base_Column_List"/>
- from sys_cbit_log
- <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_cbit_log
- where req_no = #{reqNo,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete
- from sys_cbit_log
- where req_no = #{reqNo,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.ydtech.modules.admin.model.SysCbitLogExample">
- delete from sys_cbit_log
- <if test="_parameter != null">
- <include refid="Example_Where_Clause"/>
- </if>
- </delete>
- <insert id="insert" parameterType="com.ydtech.modules.admin.model.SysCbitLog">
- insert into sys_cbit_log (req_no, usercode, req_url,
- description, response, createtime,
- req_param)
- values (#{reqNo,jdbcType=VARCHAR}, #{usercode,jdbcType=VARCHAR}, #{reqUrl,jdbcType=VARCHAR},
- #{description,jdbcType=VARCHAR}, #{response,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP},
- #{reqParam,jdbcType=LONGVARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.ydtech.modules.admin.model.SysCbitLog">
- insert into sys_cbit_log
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="reqNo != null">
- req_no,
- </if>
- <if test="usercode != null">
- usercode,
- </if>
- <if test="reqUrl != null">
- req_url,
- </if>
- <if test="description != null">
- description,
- </if>
- <if test="response != null">
- response,
- </if>
- <if test="createtime != null">
- createtime,
- </if>
- <if test="reqParam != null">
- req_param,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="reqNo != null">
- #{reqNo,jdbcType=VARCHAR},
- </if>
- <if test="usercode != null">
- #{usercode,jdbcType=VARCHAR},
- </if>
- <if test="reqUrl != null">
- #{reqUrl,jdbcType=VARCHAR},
- </if>
- <if test="description != null">
- #{description,jdbcType=VARCHAR},
- </if>
- <if test="response != null">
- #{response,jdbcType=VARCHAR},
- </if>
- <if test="createtime != null">
- #{createtime,jdbcType=TIMESTAMP},
- </if>
- <if test="reqParam != null">
- #{reqParam,jdbcType=LONGVARCHAR},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.ydtech.modules.admin.model.SysCbitLogExample"
- resultType="java.lang.Long">
- select count(*) from sys_cbit_log
- <if test="_parameter != null">
- <include refid="Example_Where_Clause"/>
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update sys_cbit_log
- <set>
- <if test="record.reqNo != null">
- req_no = #{record.reqNo,jdbcType=VARCHAR},
- </if>
- <if test="record.usercode != null">
- usercode = #{record.usercode,jdbcType=VARCHAR},
- </if>
- <if test="record.reqUrl != null">
- req_url = #{record.reqUrl,jdbcType=VARCHAR},
- </if>
- <if test="record.description != null">
- description = #{record.description,jdbcType=VARCHAR},
- </if>
- <if test="record.response != null">
- response = #{record.response,jdbcType=VARCHAR},
- </if>
- <if test="record.createtime != null">
- createtime = #{record.createtime,jdbcType=TIMESTAMP},
- </if>
- <if test="record.reqParam != null">
- req_param = #{record.reqParam,jdbcType=LONGVARCHAR},
- </if>
- </set>
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause"/>
- </if>
- </update>
- <update id="updateByExampleWithBLOBs" parameterType="map">
- update sys_cbit_log
- set req_no = #{record.reqNo,jdbcType=VARCHAR},
- usercode = #{record.usercode,jdbcType=VARCHAR},
- req_url = #{record.reqUrl,jdbcType=VARCHAR},
- description = #{record.description,jdbcType=VARCHAR},
- response = #{record.response,jdbcType=VARCHAR},
- createtime = #{record.createtime,jdbcType=TIMESTAMP},
- req_param = #{record.reqParam,jdbcType=LONGVARCHAR}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause"/>
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- update sys_cbit_log
- set req_no = #{record.reqNo,jdbcType=VARCHAR},
- usercode = #{record.usercode,jdbcType=VARCHAR},
- req_url = #{record.reqUrl,jdbcType=VARCHAR},
- description = #{record.description,jdbcType=VARCHAR},
- response = #{record.response,jdbcType=VARCHAR},
- createtime = #{record.createtime,jdbcType=TIMESTAMP}
- <if test="_parameter != null">
- <include refid="Update_By_Example_Where_Clause"/>
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.ydtech.modules.admin.model.SysCbitLog">
- update sys_cbit_log
- <set>
- <if test="usercode != null">
- usercode = #{usercode,jdbcType=VARCHAR},
- </if>
- <if test="reqUrl != null">
- req_url = #{reqUrl,jdbcType=VARCHAR},
- </if>
- <if test="description != null">
- description = #{description,jdbcType=VARCHAR},
- </if>
- <if test="response != null">
- response = #{response,jdbcType=VARCHAR},
- </if>
- <if test="createtime != null">
- createtime = #{createtime,jdbcType=TIMESTAMP},
- </if>
- <if test="reqParam != null">
- req_param = #{reqParam,jdbcType=LONGVARCHAR},
- </if>
- </set>
- where req_no = #{reqNo,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKeyWithBLOBs" parameterType="com.ydtech.modules.admin.model.SysCbitLog">
- update sys_cbit_log
- set usercode = #{usercode,jdbcType=VARCHAR},
- req_url = #{reqUrl,jdbcType=VARCHAR},
- description = #{description,jdbcType=VARCHAR},
- response = #{response,jdbcType=VARCHAR},
- createtime = #{createtime,jdbcType=TIMESTAMP},
- req_param = #{reqParam,jdbcType=LONGVARCHAR}
- where req_no = #{reqNo,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.ydtech.modules.admin.model.SysCbitLog">
- update sys_cbit_log
- set usercode = #{usercode,jdbcType=VARCHAR},
- req_url = #{reqUrl,jdbcType=VARCHAR},
- description = #{description,jdbcType=VARCHAR},
- response = #{response,jdbcType=VARCHAR},
- createtime = #{createtime,jdbcType=TIMESTAMP}
- where req_no = #{reqNo,jdbcType=VARCHAR}
- </update>
- </mapper>
|