<?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.EntriesCheckDetailResultMapper"> <resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.EntriesCheckDetailResult"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> <id column="ID" jdbcType="VARCHAR" property="id" /> <result column="RESULT_ID" jdbcType="VARCHAR" property="resultId" /> <result column="IS_DOUBT" jdbcType="DECIMAL" property="isDoubt" /> <result column="IS_BIG_VOUCHER" jdbcType="DECIMAL" property="isBigVoucher" /> <result column="VOUCHER_ID" jdbcType="VARCHAR" property="voucherId" /> <result column="VID" jdbcType="VARCHAR" property="vid" /> <result column="DATE" jdbcType="TIMESTAMP" property="date" /> <result column="GROUP" jdbcType="VARCHAR" property="group" /> <result column="PERIOD" jdbcType="DECIMAL" property="period" /> <result column="CUSTOMER_CODE" jdbcType="VARCHAR" property="customerCode" /> <result column="CUSTOMER_NAME" jdbcType="VARCHAR" property="customerName" /> <result column="SUMMARY" jdbcType="VARCHAR" property="summary" /> <result column="ACCT_CODE" jdbcType="VARCHAR" property="acctCode" /> <result column="STD_CODE" jdbcType="VARCHAR" property="stdCode" /> <result column="DEBIT" jdbcType="DECIMAL" property="debit" /> <result column="CREDIT" jdbcType="DECIMAL" property="credit" /> <result column="ATTACH" jdbcType="DECIMAL" property="attach" /> <result column="ITEM_ID" jdbcType="VARCHAR" property="itemId" /> <result column="IMPORT_TYPE" jdbcType="DECIMAL" property="importType" /> <result column="IS_FILTERED" jdbcType="DECIMAL" property="isFiltered" /> <result column="IS_RELEVANT_AMT" jdbcType="DECIMAL" property="isRelevantAmt" /> <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, RESULT_ID, IS_DOUBT, IS_BIG_VOUCHER, VOUCHER_ID, VID, "DATE", "GROUP", PERIOD, CUSTOMER_CODE, CUSTOMER_NAME, SUMMARY, ACCT_CODE, STD_CODE, DEBIT, CREDIT, ATTACH, ITEM_ID, IMPORT_TYPE, IS_FILTERED, IS_RELEVANT_AMT, CREATE_TIME, UPDATE_TIME </sql> <select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.EntriesCheckDetailResultExample" 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 ENTRIES_CHECK_DETAIL_RESULT <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"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select <include refid="Base_Column_List" /> from ENTRIES_CHECK_DETAIL_RESULT 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 ENTRIES_CHECK_DETAIL_RESULT where ID = #{id,jdbcType=VARCHAR} </delete> <delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.EntriesCheckDetailResultExample"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> delete from ENTRIES_CHECK_DETAIL_RESULT <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> </delete> <insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.EntriesCheckDetailResult"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into ENTRIES_CHECK_DETAIL_RESULT (ID, RESULT_ID, IS_DOUBT, IS_BIG_VOUCHER, VOUCHER_ID, VID, "DATE", "GROUP", PERIOD, CUSTOMER_CODE, CUSTOMER_NAME, SUMMARY, ACCT_CODE, STD_CODE, DEBIT, CREDIT, ATTACH, ITEM_ID, IMPORT_TYPE, IS_FILTERED, IS_RELEVANT_AMT, CREATE_TIME, UPDATE_TIME) values (#{id,jdbcType=VARCHAR}, #{resultId,jdbcType=VARCHAR}, #{isDoubt,jdbcType=DECIMAL}, #{isBigVoucher,jdbcType=DECIMAL}, #{voucherId,jdbcType=VARCHAR}, #{vid,jdbcType=VARCHAR}, #{date,jdbcType=TIMESTAMP}, #{group,jdbcType=VARCHAR}, #{period,jdbcType=DECIMAL}, #{customerCode,jdbcType=VARCHAR}, #{customerName,jdbcType=VARCHAR}, #{summary,jdbcType=VARCHAR}, #{acctCode,jdbcType=VARCHAR}, #{stdCode,jdbcType=VARCHAR}, #{debit,jdbcType=DECIMAL}, #{credit,jdbcType=DECIMAL}, #{attach,jdbcType=DECIMAL}, #{itemId,jdbcType=VARCHAR}, #{importType,jdbcType=DECIMAL}, #{isFiltered,jdbcType=DECIMAL}, #{isRelevantAmt,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}) </insert> <insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.EntriesCheckDetailResult"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into ENTRIES_CHECK_DETAIL_RESULT <trim prefix="(" suffix=")" suffixOverrides=","> <if test="id != null"> ID, </if> <if test="resultId != null"> RESULT_ID, </if> <if test="isDoubt != null"> IS_DOUBT, </if> <if test="isBigVoucher != null"> IS_BIG_VOUCHER, </if> <if test="voucherId != null"> VOUCHER_ID, </if> <if test="vid != null"> VID, </if> <if test="date != null"> "DATE", </if> <if test="group != null"> "GROUP", </if> <if test="period != null"> PERIOD, </if> <if test="customerCode != null"> CUSTOMER_CODE, </if> <if test="customerName != null"> CUSTOMER_NAME, </if> <if test="summary != null"> SUMMARY, </if> <if test="acctCode != null"> ACCT_CODE, </if> <if test="stdCode != null"> STD_CODE, </if> <if test="debit != null"> DEBIT, </if> <if test="credit != null"> CREDIT, </if> <if test="attach != null"> ATTACH, </if> <if test="itemId != null"> ITEM_ID, </if> <if test="importType != null"> IMPORT_TYPE, </if> <if test="isFiltered != null"> IS_FILTERED, </if> <if test="isRelevantAmt != null"> IS_RELEVANT_AMT, </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=VARCHAR}, </if> <if test="resultId != null"> #{resultId,jdbcType=VARCHAR}, </if> <if test="isDoubt != null"> #{isDoubt,jdbcType=DECIMAL}, </if> <if test="isBigVoucher != null"> #{isBigVoucher,jdbcType=DECIMAL}, </if> <if test="voucherId != null"> #{voucherId,jdbcType=VARCHAR}, </if> <if test="vid != null"> #{vid,jdbcType=VARCHAR}, </if> <if test="date != null"> #{date,jdbcType=TIMESTAMP}, </if> <if test="group != null"> #{group,jdbcType=VARCHAR}, </if> <if test="period != null"> #{period,jdbcType=DECIMAL}, </if> <if test="customerCode != null"> #{customerCode,jdbcType=VARCHAR}, </if> <if test="customerName != null"> #{customerName,jdbcType=VARCHAR}, </if> <if test="summary != null"> #{summary,jdbcType=VARCHAR}, </if> <if test="acctCode != null"> #{acctCode,jdbcType=VARCHAR}, </if> <if test="stdCode != null"> #{stdCode,jdbcType=VARCHAR}, </if> <if test="debit != null"> #{debit,jdbcType=DECIMAL}, </if> <if test="credit != null"> #{credit,jdbcType=DECIMAL}, </if> <if test="attach != null"> #{attach,jdbcType=DECIMAL}, </if> <if test="itemId != null"> #{itemId,jdbcType=VARCHAR}, </if> <if test="importType != null"> #{importType,jdbcType=DECIMAL}, </if> <if test="isFiltered != null"> #{isFiltered,jdbcType=DECIMAL}, </if> <if test="isRelevantAmt != null"> #{isRelevantAmt,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.EntriesCheckDetailResultExample" resultType="java.lang.Long"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select count(*) from ENTRIES_CHECK_DETAIL_RESULT <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 ENTRIES_CHECK_DETAIL_RESULT <set> <if test="record.id != null"> ID = #{record.id,jdbcType=VARCHAR}, </if> <if test="record.resultId != null"> RESULT_ID = #{record.resultId,jdbcType=VARCHAR}, </if> <if test="record.isDoubt != null"> IS_DOUBT = #{record.isDoubt,jdbcType=DECIMAL}, </if> <if test="record.isBigVoucher != null"> IS_BIG_VOUCHER = #{record.isBigVoucher,jdbcType=DECIMAL}, </if> <if test="record.voucherId != null"> VOUCHER_ID = #{record.voucherId,jdbcType=VARCHAR}, </if> <if test="record.vid != null"> VID = #{record.vid,jdbcType=VARCHAR}, </if> <if test="record.date != null"> "DATE" = #{record.date,jdbcType=TIMESTAMP}, </if> <if test="record.group != null"> "GROUP" = #{record.group,jdbcType=VARCHAR}, </if> <if test="record.period != null"> PERIOD = #{record.period,jdbcType=DECIMAL}, </if> <if test="record.customerCode != null"> CUSTOMER_CODE = #{record.customerCode,jdbcType=VARCHAR}, </if> <if test="record.customerName != null"> CUSTOMER_NAME = #{record.customerName,jdbcType=VARCHAR}, </if> <if test="record.summary != null"> SUMMARY = #{record.summary,jdbcType=VARCHAR}, </if> <if test="record.acctCode != null"> ACCT_CODE = #{record.acctCode,jdbcType=VARCHAR}, </if> <if test="record.stdCode != null"> STD_CODE = #{record.stdCode,jdbcType=VARCHAR}, </if> <if test="record.debit != null"> DEBIT = #{record.debit,jdbcType=DECIMAL}, </if> <if test="record.credit != null"> CREDIT = #{record.credit,jdbcType=DECIMAL}, </if> <if test="record.attach != null"> ATTACH = #{record.attach,jdbcType=DECIMAL}, </if> <if test="record.itemId != null"> ITEM_ID = #{record.itemId,jdbcType=VARCHAR}, </if> <if test="record.importType != null"> IMPORT_TYPE = #{record.importType,jdbcType=DECIMAL}, </if> <if test="record.isFiltered != null"> IS_FILTERED = #{record.isFiltered,jdbcType=DECIMAL}, </if> <if test="record.isRelevantAmt != null"> IS_RELEVANT_AMT = #{record.isRelevantAmt,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 ENTRIES_CHECK_DETAIL_RESULT set ID = #{record.id,jdbcType=VARCHAR}, RESULT_ID = #{record.resultId,jdbcType=VARCHAR}, IS_DOUBT = #{record.isDoubt,jdbcType=DECIMAL}, IS_BIG_VOUCHER = #{record.isBigVoucher,jdbcType=DECIMAL}, VOUCHER_ID = #{record.voucherId,jdbcType=VARCHAR}, VID = #{record.vid,jdbcType=VARCHAR}, "DATE" = #{record.date,jdbcType=TIMESTAMP}, "GROUP" = #{record.group,jdbcType=VARCHAR}, PERIOD = #{record.period,jdbcType=DECIMAL}, CUSTOMER_CODE = #{record.customerCode,jdbcType=VARCHAR}, CUSTOMER_NAME = #{record.customerName,jdbcType=VARCHAR}, SUMMARY = #{record.summary,jdbcType=VARCHAR}, ACCT_CODE = #{record.acctCode,jdbcType=VARCHAR}, STD_CODE = #{record.stdCode,jdbcType=VARCHAR}, DEBIT = #{record.debit,jdbcType=DECIMAL}, CREDIT = #{record.credit,jdbcType=DECIMAL}, ATTACH = #{record.attach,jdbcType=DECIMAL}, ITEM_ID = #{record.itemId,jdbcType=VARCHAR}, IMPORT_TYPE = #{record.importType,jdbcType=DECIMAL}, IS_FILTERED = #{record.isFiltered,jdbcType=DECIMAL}, IS_RELEVANT_AMT = #{record.isRelevantAmt,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.EntriesCheckDetailResult"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update ENTRIES_CHECK_DETAIL_RESULT <set> <if test="resultId != null"> RESULT_ID = #{resultId,jdbcType=VARCHAR}, </if> <if test="isDoubt != null"> IS_DOUBT = #{isDoubt,jdbcType=DECIMAL}, </if> <if test="isBigVoucher != null"> IS_BIG_VOUCHER = #{isBigVoucher,jdbcType=DECIMAL}, </if> <if test="voucherId != null"> VOUCHER_ID = #{voucherId,jdbcType=VARCHAR}, </if> <if test="vid != null"> VID = #{vid,jdbcType=VARCHAR}, </if> <if test="date != null"> "DATE" = #{date,jdbcType=TIMESTAMP}, </if> <if test="group != null"> "GROUP" = #{group,jdbcType=VARCHAR}, </if> <if test="period != null"> PERIOD = #{period,jdbcType=DECIMAL}, </if> <if test="customerCode != null"> CUSTOMER_CODE = #{customerCode,jdbcType=VARCHAR}, </if> <if test="customerName != null"> CUSTOMER_NAME = #{customerName,jdbcType=VARCHAR}, </if> <if test="summary != null"> SUMMARY = #{summary,jdbcType=VARCHAR}, </if> <if test="acctCode != null"> ACCT_CODE = #{acctCode,jdbcType=VARCHAR}, </if> <if test="stdCode != null"> STD_CODE = #{stdCode,jdbcType=VARCHAR}, </if> <if test="debit != null"> DEBIT = #{debit,jdbcType=DECIMAL}, </if> <if test="credit != null"> CREDIT = #{credit,jdbcType=DECIMAL}, </if> <if test="attach != null"> ATTACH = #{attach,jdbcType=DECIMAL}, </if> <if test="itemId != null"> ITEM_ID = #{itemId,jdbcType=VARCHAR}, </if> <if test="importType != null"> IMPORT_TYPE = #{importType,jdbcType=DECIMAL}, </if> <if test="isFiltered != null"> IS_FILTERED = #{isFiltered,jdbcType=DECIMAL}, </if> <if test="isRelevantAmt != null"> IS_RELEVANT_AMT = #{isRelevantAmt,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=VARCHAR} </update> <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.EntriesCheckDetailResult"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update ENTRIES_CHECK_DETAIL_RESULT set RESULT_ID = #{resultId,jdbcType=VARCHAR}, IS_DOUBT = #{isDoubt,jdbcType=DECIMAL}, IS_BIG_VOUCHER = #{isBigVoucher,jdbcType=DECIMAL}, VOUCHER_ID = #{voucherId,jdbcType=VARCHAR}, VID = #{vid,jdbcType=VARCHAR}, "DATE" = #{date,jdbcType=TIMESTAMP}, "GROUP" = #{group,jdbcType=VARCHAR}, PERIOD = #{period,jdbcType=DECIMAL}, CUSTOMER_CODE = #{customerCode,jdbcType=VARCHAR}, CUSTOMER_NAME = #{customerName,jdbcType=VARCHAR}, SUMMARY = #{summary,jdbcType=VARCHAR}, ACCT_CODE = #{acctCode,jdbcType=VARCHAR}, STD_CODE = #{stdCode,jdbcType=VARCHAR}, DEBIT = #{debit,jdbcType=DECIMAL}, CREDIT = #{credit,jdbcType=DECIMAL}, ATTACH = #{attach,jdbcType=DECIMAL}, ITEM_ID = #{itemId,jdbcType=VARCHAR}, IMPORT_TYPE = #{importType,jdbcType=DECIMAL}, IS_FILTERED = #{isFiltered,jdbcType=DECIMAL}, IS_RELEVANT_AMT = #{isRelevantAmt,jdbcType=DECIMAL}, CREATE_TIME = #{createTime,jdbcType=TIMESTAMP}, UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP} where ID = #{id,jdbcType=VARCHAR} </update> <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.EntriesCheckDetailResultExample" 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 ENTRIES_CHECK_DETAIL_RESULT <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> <if test="orderByClause != null"> order by ${orderByClause} </if> </select> </mapper>