<?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="pwc.taxtech.atms.vat.dao.CellDataSourceMapper"> <resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.CellDataSource"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> <id column="ID" jdbcType="DECIMAL" property="id" /> <result column="CELL_TEMPLATE_ID" jdbcType="DECIMAL" property="cellTemplateId" /> <result column="CELL_DATA_ID" jdbcType="DECIMAL" property="cellDataId" /> <result column="DATA_SOURCE_ID" jdbcType="DECIMAL" property="dataSourceId" /> <result column="OPERATION_TYPE" jdbcType="DECIMAL" property="operationType" /> <result column="CREATE_TIME" jdbcType="TIMESTAMP" property="createTime" /> <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" /> </resultMap> <sql id="Example_Where_Clause"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> <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"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> <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"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> ID, CELL_TEMPLATE_ID, CELL_DATA_ID, DATA_SOURCE_ID, OPERATION_TYPE, CREATE_TIME, UPDATE_TIME </sql> <select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.CellDataSourceExample" resultMap="BaseResultMap"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select <if test="distinct"> distinct </if> <include refid="Base_Column_List" /> from CELL_DATA_SOURCE <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.Long" resultMap="BaseResultMap"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select <include refid="Base_Column_List" /> from CELL_DATA_SOURCE where ID = #{id,jdbcType=DECIMAL} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> delete from CELL_DATA_SOURCE where ID = #{id,jdbcType=DECIMAL} </delete> <delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.CellDataSourceExample"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> delete from CELL_DATA_SOURCE <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> </delete> <insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.CellDataSource"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into CELL_DATA_SOURCE (ID, CELL_TEMPLATE_ID, CELL_DATA_ID, DATA_SOURCE_ID, OPERATION_TYPE, CREATE_TIME, UPDATE_TIME) values (#{id,jdbcType=DECIMAL}, #{cellTemplateId,jdbcType=DECIMAL}, #{cellDataId,jdbcType=DECIMAL}, #{dataSourceId,jdbcType=DECIMAL}, #{operationType,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}) </insert> <insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.CellDataSource"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into CELL_DATA_SOURCE <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="cellTemplateId != null"> CELL_TEMPLATE_ID, </if> <if test="cellDataId != null"> CELL_DATA_ID, </if> <if test="dataSourceId != null"> DATA_SOURCE_ID, </if> <if test="operationType != null"> OPERATION_TYPE, </if> <if test="createTime != null"> CREATE_TIME, </if> <if test="updateTime != null"> UPDATE_TIME, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="id != null"> #{id,jdbcType=DECIMAL}, </if> <if test="cellTemplateId != null"> #{cellTemplateId,jdbcType=DECIMAL}, </if> <if test="cellDataId != null"> #{cellDataId,jdbcType=DECIMAL}, </if> <if test="dataSourceId != null"> #{dataSourceId,jdbcType=DECIMAL}, </if> <if test="operationType != null"> #{operationType,jdbcType=DECIMAL}, </if> <if test="createTime != null"> #{createTime,jdbcType=TIMESTAMP}, </if> <if test="updateTime != null"> #{updateTime,jdbcType=TIMESTAMP}, </if> </trim> </insert> <select id="countByExample" parameterType="pwc.taxtech.atms.vat.entity.CellDataSourceExample" resultType="java.lang.Long"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select count(*) from CELL_DATA_SOURCE <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> </select> <update id="updateByExampleSelective" parameterType="map"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update CELL_DATA_SOURCE <set> <if test="record.id != null"> ID = #{record.id,jdbcType=DECIMAL}, </if> <if test="record.cellTemplateId != null"> CELL_TEMPLATE_ID = #{record.cellTemplateId,jdbcType=DECIMAL}, </if> <if test="record.cellDataId != null"> CELL_DATA_ID = #{record.cellDataId,jdbcType=DECIMAL}, </if> <if test="record.dataSourceId != null"> DATA_SOURCE_ID = #{record.dataSourceId,jdbcType=DECIMAL}, </if> <if test="record.operationType != null"> OPERATION_TYPE = #{record.operationType,jdbcType=DECIMAL}, </if> <if test="record.createTime != null"> CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP}, </if> <if test="record.updateTime != null"> UPDATE_TIME = #{record.updateTime,jdbcType=TIMESTAMP}, </if> </set> <if test="_parameter != null"> <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByExample" parameterType="map"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update CELL_DATA_SOURCE set ID = #{record.id,jdbcType=DECIMAL}, CELL_TEMPLATE_ID = #{record.cellTemplateId,jdbcType=DECIMAL}, CELL_DATA_ID = #{record.cellDataId,jdbcType=DECIMAL}, DATA_SOURCE_ID = #{record.dataSourceId,jdbcType=DECIMAL}, OPERATION_TYPE = #{record.operationType,jdbcType=DECIMAL}, CREATE_TIME = #{record.createTime,jdbcType=TIMESTAMP}, UPDATE_TIME = #{record.updateTime,jdbcType=TIMESTAMP} <if test="_parameter != null"> <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.vat.entity.CellDataSource"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update CELL_DATA_SOURCE <set> <if test="cellTemplateId != null"> CELL_TEMPLATE_ID = #{cellTemplateId,jdbcType=DECIMAL}, </if> <if test="cellDataId != null"> CELL_DATA_ID = #{cellDataId,jdbcType=DECIMAL}, </if> <if test="dataSourceId != null"> DATA_SOURCE_ID = #{dataSourceId,jdbcType=DECIMAL}, </if> <if test="operationType != null"> OPERATION_TYPE = #{operationType,jdbcType=DECIMAL}, </if> <if test="createTime != null"> CREATE_TIME = #{createTime,jdbcType=TIMESTAMP}, </if> <if test="updateTime != null"> UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP}, </if> </set> where ID = #{id,jdbcType=DECIMAL} </update> <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.CellDataSource"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update CELL_DATA_SOURCE set CELL_TEMPLATE_ID = #{cellTemplateId,jdbcType=DECIMAL}, CELL_DATA_ID = #{cellDataId,jdbcType=DECIMAL}, DATA_SOURCE_ID = #{dataSourceId,jdbcType=DECIMAL}, OPERATION_TYPE = #{operationType,jdbcType=DECIMAL}, CREATE_TIME = #{createTime,jdbcType=TIMESTAMP}, UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP} where ID = #{id,jdbcType=DECIMAL} </update> <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.CellDataSourceExample" resultMap="BaseResultMap"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select <if test="distinct"> distinct </if> <include refid="Base_Column_List" /> from CELL_DATA_SOURCE <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> <if test="orderByClause != null"> order by ${orderByClause} </if> </select> </mapper>