<?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.IndexAnalysisDetailResultMapper"> <resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.IndexAnalysisDetailResult"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> <id column="ID" jdbcType="VARCHAR" property="ID" /> <result column="ResultID" jdbcType="VARCHAR" property="resultID" /> <result column="Year" jdbcType="INTEGER" property="year" /> <result column="Period" jdbcType="INTEGER" property="period" /> <result column="IndexName" jdbcType="VARCHAR" property="indexName" /> <result column="Sequence" jdbcType="INTEGER" property="sequence" /> <result column="DisplayType" jdbcType="INTEGER" property="displayType" /> <result column="IsVisible" jdbcType="INTEGER" property="isVisible" /> <result column="IsMainValue" jdbcType="INTEGER" property="isMainValue" /> <result column="IsYearValue" jdbcType="INTEGER" property="isYearValue" /> <result column="IsMonExp" jdbcType="INTEGER" property="isMonExp" /> <result column="IsYearExp" jdbcType="INTEGER" property="isYearExp" /> <result column="IndexResult" jdbcType="VARCHAR" property="indexResult" /> <result column="CreateTime" jdbcType="TIMESTAMP" property="createTime" /> <result column="UpdateTime" jdbcType="TIMESTAMP" property="updateTime" /> </resultMap> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="pwc.taxtech.atms.vat.entity.IndexAnalysisDetailResult"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> <result column="IndexCode" jdbcType="LONGVARCHAR" property="indexCode" /> </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, ResultID, Year, Period, IndexName, Sequence, DisplayType, IsVisible, IsMainValue, IsYearValue, IsMonExp, IsYearExp, IndexResult, CreateTime, UpdateTime </sql> <sql id="Blob_Column_List"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> IndexCode </sql> <select id="selectByExampleWithBLOBs" parameterType="pwc.taxtech.atms.vat.entity.IndexAnalysisDetailResultExample" resultMap="ResultMapWithBLOBs"> <!-- 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" /> , <include refid="Blob_Column_List" /> from IndexAnalysisDetailResult <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> <if test="orderByClause != null"> order by ${orderByClause} </if> </select> <select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.IndexAnalysisDetailResultExample" 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 IndexAnalysisDetailResult <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"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select <include refid="Base_Column_List" /> , <include refid="Blob_Column_List" /> from IndexAnalysisDetailResult where ID = #{ID,jdbcType=VARCHAR} </select> <delete id="deleteByPrimaryKey" parameterType="java.lang.String"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> delete from IndexAnalysisDetailResult where ID = #{ID,jdbcType=VARCHAR} </delete> <delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.IndexAnalysisDetailResultExample"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> delete from IndexAnalysisDetailResult <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> </delete> <insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.IndexAnalysisDetailResult"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into IndexAnalysisDetailResult (ID, ResultID, Year, Period, IndexName, Sequence, DisplayType, IsVisible, IsMainValue, IsYearValue, IsMonExp, IsYearExp, IndexResult, CreateTime, UpdateTime, IndexCode) values (#{ID,jdbcType=VARCHAR}, #{resultID,jdbcType=VARCHAR}, #{year,jdbcType=INTEGER}, #{period,jdbcType=INTEGER}, #{indexName,jdbcType=VARCHAR}, #{sequence,jdbcType=INTEGER}, #{displayType,jdbcType=INTEGER}, #{isVisible,jdbcType=INTEGER}, #{isMainValue,jdbcType=INTEGER}, #{isYearValue,jdbcType=INTEGER}, #{isMonExp,jdbcType=INTEGER}, #{isYearExp,jdbcType=INTEGER}, #{indexResult,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{indexCode,jdbcType=LONGVARCHAR}) </insert> <insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.IndexAnalysisDetailResult"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into IndexAnalysisDetailResult <trim prefix="(" suffix=")" suffixOverrides=","> <if test="ID != null"> ID, </if> <if test="resultID != null"> ResultID, </if> <if test="year != null"> Year, </if> <if test="period != null"> Period, </if> <if test="indexName != null"> IndexName, </if> <if test="sequence != null"> Sequence, </if> <if test="displayType != null"> DisplayType, </if> <if test="isVisible != null"> IsVisible, </if> <if test="isMainValue != null"> IsMainValue, </if> <if test="isYearValue != null"> IsYearValue, </if> <if test="isMonExp != null"> IsMonExp, </if> <if test="isYearExp != null"> IsYearExp, </if> <if test="indexResult != null"> IndexResult, </if> <if test="createTime != null"> CreateTime, </if> <if test="updateTime != null"> UpdateTime, </if> <if test="indexCode != null"> IndexCode, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="ID != null"> #{ID,jdbcType=VARCHAR}, </if> <if test="resultID != null"> #{resultID,jdbcType=VARCHAR}, </if> <if test="year != null"> #{year,jdbcType=INTEGER}, </if> <if test="period != null"> #{period,jdbcType=INTEGER}, </if> <if test="indexName != null"> #{indexName,jdbcType=VARCHAR}, </if> <if test="sequence != null"> #{sequence,jdbcType=INTEGER}, </if> <if test="displayType != null"> #{displayType,jdbcType=INTEGER}, </if> <if test="isVisible != null"> #{isVisible,jdbcType=INTEGER}, </if> <if test="isMainValue != null"> #{isMainValue,jdbcType=INTEGER}, </if> <if test="isYearValue != null"> #{isYearValue,jdbcType=INTEGER}, </if> <if test="isMonExp != null"> #{isMonExp,jdbcType=INTEGER}, </if> <if test="isYearExp != null"> #{isYearExp,jdbcType=INTEGER}, </if> <if test="indexResult != null"> #{indexResult,jdbcType=VARCHAR}, </if> <if test="createTime != null"> #{createTime,jdbcType=TIMESTAMP}, </if> <if test="updateTime != null"> #{updateTime,jdbcType=TIMESTAMP}, </if> <if test="indexCode != null"> #{indexCode,jdbcType=LONGVARCHAR}, </if> </trim> </insert> <select id="countByExample" parameterType="pwc.taxtech.atms.vat.entity.IndexAnalysisDetailResultExample" resultType="java.lang.Long"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select count(*) from IndexAnalysisDetailResult <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 IndexAnalysisDetailResult <set> <if test="record.ID != null"> ID = #{record.ID,jdbcType=VARCHAR}, </if> <if test="record.resultID != null"> ResultID = #{record.resultID,jdbcType=VARCHAR}, </if> <if test="record.year != null"> Year = #{record.year,jdbcType=INTEGER}, </if> <if test="record.period != null"> Period = #{record.period,jdbcType=INTEGER}, </if> <if test="record.indexName != null"> IndexName = #{record.indexName,jdbcType=VARCHAR}, </if> <if test="record.sequence != null"> Sequence = #{record.sequence,jdbcType=INTEGER}, </if> <if test="record.displayType != null"> DisplayType = #{record.displayType,jdbcType=INTEGER}, </if> <if test="record.isVisible != null"> IsVisible = #{record.isVisible,jdbcType=INTEGER}, </if> <if test="record.isMainValue != null"> IsMainValue = #{record.isMainValue,jdbcType=INTEGER}, </if> <if test="record.isYearValue != null"> IsYearValue = #{record.isYearValue,jdbcType=INTEGER}, </if> <if test="record.isMonExp != null"> IsMonExp = #{record.isMonExp,jdbcType=INTEGER}, </if> <if test="record.isYearExp != null"> IsYearExp = #{record.isYearExp,jdbcType=INTEGER}, </if> <if test="record.indexResult != null"> IndexResult = #{record.indexResult,jdbcType=VARCHAR}, </if> <if test="record.createTime != null"> CreateTime = #{record.createTime,jdbcType=TIMESTAMP}, </if> <if test="record.updateTime != null"> UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP}, </if> <if test="record.indexCode != null"> IndexCode = #{record.indexCode,jdbcType=LONGVARCHAR}, </if> </set> <if test="_parameter != null"> <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByExampleWithBLOBs" parameterType="map"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update IndexAnalysisDetailResult set ID = #{record.ID,jdbcType=VARCHAR}, ResultID = #{record.resultID,jdbcType=VARCHAR}, Year = #{record.year,jdbcType=INTEGER}, Period = #{record.period,jdbcType=INTEGER}, IndexName = #{record.indexName,jdbcType=VARCHAR}, Sequence = #{record.sequence,jdbcType=INTEGER}, DisplayType = #{record.displayType,jdbcType=INTEGER}, IsVisible = #{record.isVisible,jdbcType=INTEGER}, IsMainValue = #{record.isMainValue,jdbcType=INTEGER}, IsYearValue = #{record.isYearValue,jdbcType=INTEGER}, IsMonExp = #{record.isMonExp,jdbcType=INTEGER}, IsYearExp = #{record.isYearExp,jdbcType=INTEGER}, IndexResult = #{record.indexResult,jdbcType=VARCHAR}, CreateTime = #{record.createTime,jdbcType=TIMESTAMP}, UpdateTime = #{record.updateTime,jdbcType=TIMESTAMP}, IndexCode = #{record.indexCode,jdbcType=LONGVARCHAR} <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 IndexAnalysisDetailResult set ID = #{record.ID,jdbcType=VARCHAR}, ResultID = #{record.resultID,jdbcType=VARCHAR}, Year = #{record.year,jdbcType=INTEGER}, Period = #{record.period,jdbcType=INTEGER}, IndexName = #{record.indexName,jdbcType=VARCHAR}, Sequence = #{record.sequence,jdbcType=INTEGER}, DisplayType = #{record.displayType,jdbcType=INTEGER}, IsVisible = #{record.isVisible,jdbcType=INTEGER}, IsMainValue = #{record.isMainValue,jdbcType=INTEGER}, IsYearValue = #{record.isYearValue,jdbcType=INTEGER}, IsMonExp = #{record.isMonExp,jdbcType=INTEGER}, IsYearExp = #{record.isYearExp,jdbcType=INTEGER}, IndexResult = #{record.indexResult,jdbcType=VARCHAR}, CreateTime = #{record.createTime,jdbcType=TIMESTAMP}, UpdateTime = #{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.IndexAnalysisDetailResult"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update IndexAnalysisDetailResult <set> <if test="resultID != null"> ResultID = #{resultID,jdbcType=VARCHAR}, </if> <if test="year != null"> Year = #{year,jdbcType=INTEGER}, </if> <if test="period != null"> Period = #{period,jdbcType=INTEGER}, </if> <if test="indexName != null"> IndexName = #{indexName,jdbcType=VARCHAR}, </if> <if test="sequence != null"> Sequence = #{sequence,jdbcType=INTEGER}, </if> <if test="displayType != null"> DisplayType = #{displayType,jdbcType=INTEGER}, </if> <if test="isVisible != null"> IsVisible = #{isVisible,jdbcType=INTEGER}, </if> <if test="isMainValue != null"> IsMainValue = #{isMainValue,jdbcType=INTEGER}, </if> <if test="isYearValue != null"> IsYearValue = #{isYearValue,jdbcType=INTEGER}, </if> <if test="isMonExp != null"> IsMonExp = #{isMonExp,jdbcType=INTEGER}, </if> <if test="isYearExp != null"> IsYearExp = #{isYearExp,jdbcType=INTEGER}, </if> <if test="indexResult != null"> IndexResult = #{indexResult,jdbcType=VARCHAR}, </if> <if test="createTime != null"> CreateTime = #{createTime,jdbcType=TIMESTAMP}, </if> <if test="updateTime != null"> UpdateTime = #{updateTime,jdbcType=TIMESTAMP}, </if> <if test="indexCode != null"> IndexCode = #{indexCode,jdbcType=LONGVARCHAR}, </if> </set> where ID = #{ID,jdbcType=VARCHAR} </update> <update id="updateByPrimaryKeyWithBLOBs" parameterType="pwc.taxtech.atms.vat.entity.IndexAnalysisDetailResult"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update IndexAnalysisDetailResult set ResultID = #{resultID,jdbcType=VARCHAR}, Year = #{year,jdbcType=INTEGER}, Period = #{period,jdbcType=INTEGER}, IndexName = #{indexName,jdbcType=VARCHAR}, Sequence = #{sequence,jdbcType=INTEGER}, DisplayType = #{displayType,jdbcType=INTEGER}, IsVisible = #{isVisible,jdbcType=INTEGER}, IsMainValue = #{isMainValue,jdbcType=INTEGER}, IsYearValue = #{isYearValue,jdbcType=INTEGER}, IsMonExp = #{isMonExp,jdbcType=INTEGER}, IsYearExp = #{isYearExp,jdbcType=INTEGER}, IndexResult = #{indexResult,jdbcType=VARCHAR}, CreateTime = #{createTime,jdbcType=TIMESTAMP}, UpdateTime = #{updateTime,jdbcType=TIMESTAMP}, IndexCode = #{indexCode,jdbcType=LONGVARCHAR} where ID = #{ID,jdbcType=VARCHAR} </update> <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.IndexAnalysisDetailResult"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update IndexAnalysisDetailResult set ResultID = #{resultID,jdbcType=VARCHAR}, Year = #{year,jdbcType=INTEGER}, Period = #{period,jdbcType=INTEGER}, IndexName = #{indexName,jdbcType=VARCHAR}, Sequence = #{sequence,jdbcType=INTEGER}, DisplayType = #{displayType,jdbcType=INTEGER}, IsVisible = #{isVisible,jdbcType=INTEGER}, IsMainValue = #{isMainValue,jdbcType=INTEGER}, IsYearValue = #{isYearValue,jdbcType=INTEGER}, IsMonExp = #{isMonExp,jdbcType=INTEGER}, IsYearExp = #{isYearExp,jdbcType=INTEGER}, IndexResult = #{indexResult,jdbcType=VARCHAR}, CreateTime = #{createTime,jdbcType=TIMESTAMP}, UpdateTime = #{updateTime,jdbcType=TIMESTAMP} where ID = #{ID,jdbcType=VARCHAR} </update> <select id="selectByExampleWithBLOBsWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.IndexAnalysisDetailResultExample" resultMap="ResultMapWithBLOBs"> <!-- 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" /> , <include refid="Blob_Column_List" /> from IndexAnalysisDetailResult <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> <if test="orderByClause != null"> order by ${orderByClause} </if> </select> <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.IndexAnalysisDetailResultExample" 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 IndexAnalysisDetailResult <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> <if test="orderByClause != null"> order by ${orderByClause} </if> </select> </mapper>