123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338 |
- <?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.SrTempfieldMapper">
- <resultMap id="BaseResultMap" type="com.bowintek.practice.model.SrTempfield">
- <id column="tempFeildId" jdbcType="VARCHAR" property="tempFeildId" />
- <result column="tempId" jdbcType="VARCHAR" property="tempId" />
- <result column="fieldId" jdbcType="VARCHAR" property="fieldId" />
- <result column="value1" jdbcType="VARCHAR" property="value1" />
- <result column="value2" jdbcType="VARCHAR" property="value2" />
- <result column="disOrder" jdbcType="INTEGER" property="disOrder" />
- <result column="fieldCode" jdbcType="VARCHAR" property="fieldCode" />
- <result column="fieldName" jdbcType="VARCHAR" property="fieldName" />
- <result column="fieldAlias" jdbcType="VARCHAR" property="fieldAlias" />
- <result column="dataType" jdbcType="VARCHAR" property="dataType" />
- <result column="operation" jdbcType="VARCHAR" property="operation" />
- <result column="queryType" jdbcType="INTEGER" property="queryType" />
- <result column="dictionaryCode" jdbcType="VARCHAR" property="dictionaryCode" />
- </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">
- tempFeildId, tempId, fieldId, value1, value2, disOrder, fieldCode, fieldName, fieldAlias,
- dataType, operation, queryType, dictionaryCode
- </sql>
- <select id="selectByExample" parameterType="com.bowintek.practice.model.SrTempfieldExample" resultMap="BaseResultMap">
- select
- <if test="distinct">
- distinct
- </if>
- <include refid="Base_Column_List" />
- from sr_tempfield
- <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 sr_tempfield
- where tempFeildId = #{tempFeildId,jdbcType=VARCHAR}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.String">
- delete from sr_tempfield
- where tempFeildId = #{tempFeildId,jdbcType=VARCHAR}
- </delete>
- <delete id="deleteByExample" parameterType="com.bowintek.practice.model.SrTempfieldExample">
- delete from sr_tempfield
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </delete>
- <insert id="insert" parameterType="com.bowintek.practice.model.SrTempfield">
- insert into sr_tempfield (tempFeildId, tempId, fieldId,
- value1, value2, disOrder,
- fieldCode, fieldName, fieldAlias,
- dataType, operation, queryType,
- dictionaryCode)
- values (#{tempFeildId,jdbcType=VARCHAR}, #{tempId,jdbcType=VARCHAR}, #{fieldId,jdbcType=VARCHAR},
- #{value1,jdbcType=VARCHAR}, #{value2,jdbcType=VARCHAR}, #{disOrder,jdbcType=INTEGER},
- #{fieldCode,jdbcType=VARCHAR}, #{fieldName,jdbcType=VARCHAR}, #{fieldAlias,jdbcType=VARCHAR},
- #{dataType,jdbcType=VARCHAR}, #{operation,jdbcType=VARCHAR}, #{queryType,jdbcType=INTEGER},
- #{dictionaryCode,jdbcType=VARCHAR})
- </insert>
- <insert id="insertSelective" parameterType="com.bowintek.practice.model.SrTempfield">
- insert into sr_tempfield
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="tempFeildId != null">
- tempFeildId,
- </if>
- <if test="tempId != null">
- tempId,
- </if>
- <if test="fieldId != null">
- fieldId,
- </if>
- <if test="value1 != null">
- value1,
- </if>
- <if test="value2 != null">
- value2,
- </if>
- <if test="disOrder != null">
- disOrder,
- </if>
- <if test="fieldCode != null">
- fieldCode,
- </if>
- <if test="fieldName != null">
- fieldName,
- </if>
- <if test="fieldAlias != null">
- fieldAlias,
- </if>
- <if test="dataType != null">
- dataType,
- </if>
- <if test="operation != null">
- operation,
- </if>
- <if test="queryType != null">
- queryType,
- </if>
- <if test="dictionaryCode != null">
- dictionaryCode,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="tempFeildId != null">
- #{tempFeildId,jdbcType=VARCHAR},
- </if>
- <if test="tempId != null">
- #{tempId,jdbcType=VARCHAR},
- </if>
- <if test="fieldId != null">
- #{fieldId,jdbcType=VARCHAR},
- </if>
- <if test="value1 != null">
- #{value1,jdbcType=VARCHAR},
- </if>
- <if test="value2 != null">
- #{value2,jdbcType=VARCHAR},
- </if>
- <if test="disOrder != null">
- #{disOrder,jdbcType=INTEGER},
- </if>
- <if test="fieldCode != null">
- #{fieldCode,jdbcType=VARCHAR},
- </if>
- <if test="fieldName != null">
- #{fieldName,jdbcType=VARCHAR},
- </if>
- <if test="fieldAlias != null">
- #{fieldAlias,jdbcType=VARCHAR},
- </if>
- <if test="dataType != null">
- #{dataType,jdbcType=VARCHAR},
- </if>
- <if test="operation != null">
- #{operation,jdbcType=VARCHAR},
- </if>
- <if test="queryType != null">
- #{queryType,jdbcType=INTEGER},
- </if>
- <if test="dictionaryCode != null">
- #{dictionaryCode,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- <select id="countByExample" parameterType="com.bowintek.practice.model.SrTempfieldExample" resultType="java.lang.Long">
- select count(*) from sr_tempfield
- <if test="_parameter != null">
- <include refid="Example_Where_Clause" />
- </if>
- </select>
- <update id="updateByExampleSelective" parameterType="map">
- update sr_tempfield
- <set>
- <if test="row.tempFeildId != null">
- tempFeildId = #{row.tempFeildId,jdbcType=VARCHAR},
- </if>
- <if test="row.tempId != null">
- tempId = #{row.tempId,jdbcType=VARCHAR},
- </if>
- <if test="row.fieldId != null">
- fieldId = #{row.fieldId,jdbcType=VARCHAR},
- </if>
- <if test="row.value1 != null">
- value1 = #{row.value1,jdbcType=VARCHAR},
- </if>
- <if test="row.value2 != null">
- value2 = #{row.value2,jdbcType=VARCHAR},
- </if>
- <if test="row.disOrder != null">
- disOrder = #{row.disOrder,jdbcType=INTEGER},
- </if>
- <if test="row.fieldCode != null">
- fieldCode = #{row.fieldCode,jdbcType=VARCHAR},
- </if>
- <if test="row.fieldName != null">
- fieldName = #{row.fieldName,jdbcType=VARCHAR},
- </if>
- <if test="row.fieldAlias != null">
- fieldAlias = #{row.fieldAlias,jdbcType=VARCHAR},
- </if>
- <if test="row.dataType != null">
- dataType = #{row.dataType,jdbcType=VARCHAR},
- </if>
- <if test="row.operation != null">
- operation = #{row.operation,jdbcType=VARCHAR},
- </if>
- <if test="row.queryType != null">
- queryType = #{row.queryType,jdbcType=INTEGER},
- </if>
- <if test="row.dictionaryCode != null">
- dictionaryCode = #{row.dictionaryCode,jdbcType=VARCHAR},
- </if>
- </set>
- <if test="example != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByExample" parameterType="map">
- update sr_tempfield
- set tempFeildId = #{row.tempFeildId,jdbcType=VARCHAR},
- tempId = #{row.tempId,jdbcType=VARCHAR},
- fieldId = #{row.fieldId,jdbcType=VARCHAR},
- value1 = #{row.value1,jdbcType=VARCHAR},
- value2 = #{row.value2,jdbcType=VARCHAR},
- disOrder = #{row.disOrder,jdbcType=INTEGER},
- fieldCode = #{row.fieldCode,jdbcType=VARCHAR},
- fieldName = #{row.fieldName,jdbcType=VARCHAR},
- fieldAlias = #{row.fieldAlias,jdbcType=VARCHAR},
- dataType = #{row.dataType,jdbcType=VARCHAR},
- operation = #{row.operation,jdbcType=VARCHAR},
- queryType = #{row.queryType,jdbcType=INTEGER},
- dictionaryCode = #{row.dictionaryCode,jdbcType=VARCHAR}
- <if test="example != null">
- <include refid="Update_By_Example_Where_Clause" />
- </if>
- </update>
- <update id="updateByPrimaryKeySelective" parameterType="com.bowintek.practice.model.SrTempfield">
- update sr_tempfield
- <set>
- <if test="tempId != null">
- tempId = #{tempId,jdbcType=VARCHAR},
- </if>
- <if test="fieldId != null">
- fieldId = #{fieldId,jdbcType=VARCHAR},
- </if>
- <if test="value1 != null">
- value1 = #{value1,jdbcType=VARCHAR},
- </if>
- <if test="value2 != null">
- value2 = #{value2,jdbcType=VARCHAR},
- </if>
- <if test="disOrder != null">
- disOrder = #{disOrder,jdbcType=INTEGER},
- </if>
- <if test="fieldCode != null">
- fieldCode = #{fieldCode,jdbcType=VARCHAR},
- </if>
- <if test="fieldName != null">
- fieldName = #{fieldName,jdbcType=VARCHAR},
- </if>
- <if test="fieldAlias != null">
- fieldAlias = #{fieldAlias,jdbcType=VARCHAR},
- </if>
- <if test="dataType != null">
- dataType = #{dataType,jdbcType=VARCHAR},
- </if>
- <if test="operation != null">
- operation = #{operation,jdbcType=VARCHAR},
- </if>
- <if test="queryType != null">
- queryType = #{queryType,jdbcType=INTEGER},
- </if>
- <if test="dictionaryCode != null">
- dictionaryCode = #{dictionaryCode,jdbcType=VARCHAR},
- </if>
- </set>
- where tempFeildId = #{tempFeildId,jdbcType=VARCHAR}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.bowintek.practice.model.SrTempfield">
- update sr_tempfield
- set tempId = #{tempId,jdbcType=VARCHAR},
- fieldId = #{fieldId,jdbcType=VARCHAR},
- value1 = #{value1,jdbcType=VARCHAR},
- value2 = #{value2,jdbcType=VARCHAR},
- disOrder = #{disOrder,jdbcType=INTEGER},
- fieldCode = #{fieldCode,jdbcType=VARCHAR},
- fieldName = #{fieldName,jdbcType=VARCHAR},
- fieldAlias = #{fieldAlias,jdbcType=VARCHAR},
- dataType = #{dataType,jdbcType=VARCHAR},
- operation = #{operation,jdbcType=VARCHAR},
- queryType = #{queryType,jdbcType=INTEGER},
- dictionaryCode = #{dictionaryCode,jdbcType=VARCHAR}
- where tempFeildId = #{tempFeildId,jdbcType=VARCHAR}
- </update>
- </mapper>
|