<?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.BalanceMapper"> <resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.Balance"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> <id column="BALANCE_ID" jdbcType="VARCHAR" property="balanceId" /> <result column="PERIOD_ID" jdbcType="DECIMAL" property="periodId" /> <result column="ACCT_CODE" jdbcType="VARCHAR" property="acctCode" /> <result column="CUSTOMER_CODE" jdbcType="VARCHAR" property="customerCode" /> <result column="BEG_DEBIT_BAL" jdbcType="DECIMAL" property="begDebitBal" /> <result column="BEG_CREDIT_BAL" jdbcType="DECIMAL" property="begCreditBal" /> <result column="BEG_BAL" jdbcType="DECIMAL" property="begBal" /> <result column="END_BAL" jdbcType="DECIMAL" property="endBal" /> <result column="END_DEBIT_BAL" jdbcType="DECIMAL" property="endDebitBal" /> <result column="END_CREDIT_BAL" jdbcType="DECIMAL" property="endCreditBal" /> <result column="DEBIT_BAL" jdbcType="DECIMAL" property="debitBal" /> <result column="CREDIT_BAL" jdbcType="DECIMAL" property="creditBal" /> <result column="MONTH_ID" jdbcType="DECIMAL" property="monthId" /> <result column="YEAR_DEBIT_BAL" jdbcType="DECIMAL" property="yearDebitBal" /> <result column="YEAR_CREDIT_BAL" jdbcType="DECIMAL" property="yearCreditBal" /> <result column="CARRYOVER_DEBIT" jdbcType="DECIMAL" property="carryoverDebit" /> <result column="CARRYOVER_CREDIT" jdbcType="DECIMAL" property="carryoverCredit" /> <result column="YEAR_CARRYOVER_DEBIT" jdbcType="DECIMAL" property="yearCarryoverDebit" /> <result column="YEAR_CARRYOVER_CREDIT" jdbcType="DECIMAL" property="yearCarryoverCredit" /> <result column="DEBIT_NET" jdbcType="DECIMAL" property="debitNet" /> <result column="CREDIT_NET" jdbcType="DECIMAL" property="creditNet" /> <result column="YEAR_DEBIT_NET" jdbcType="DECIMAL" property="yearDebitNet" /> <result column="YEAR_CREDIT_NET" jdbcType="DECIMAL" property="yearCreditNet" /> <result column="STD_CODE" jdbcType="VARCHAR" property="stdCode" /> <result column="MAPPING_REASON" jdbcType="VARCHAR" property="mappingReason" /> <result column="MAPPING_USER" jdbcType="VARCHAR" property="mappingUser" /> <result column="MAPPING_TIME" jdbcType="TIMESTAMP" property="mappingTime" /> <result column="SUB_PROP" jdbcType="DECIMAL" property="subProp" /> <result column="IS_DUMMY" jdbcType="DECIMAL" property="isDummy" /> </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. --> BALANCE_ID, PERIOD_ID, ACCT_CODE, CUSTOMER_CODE, BEG_DEBIT_BAL, BEG_CREDIT_BAL, BEG_BAL, END_BAL, END_DEBIT_BAL, END_CREDIT_BAL, DEBIT_BAL, CREDIT_BAL, MONTH_ID, YEAR_DEBIT_BAL, YEAR_CREDIT_BAL, CARRYOVER_DEBIT, CARRYOVER_CREDIT, YEAR_CARRYOVER_DEBIT, YEAR_CARRYOVER_CREDIT, DEBIT_NET, CREDIT_NET, YEAR_DEBIT_NET, YEAR_CREDIT_NET, STD_CODE, MAPPING_REASON, MAPPING_USER, MAPPING_TIME, SUB_PROP, IS_DUMMY </sql> <select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.BalanceExample" 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 BALANCE <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 BALANCE where BALANCE_ID = #{balanceId,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 BALANCE where BALANCE_ID = #{balanceId,jdbcType=VARCHAR} </delete> <delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.BalanceExample"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> delete from BALANCE <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> </delete> <insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.Balance"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into BALANCE (BALANCE_ID, PERIOD_ID, ACCT_CODE, CUSTOMER_CODE, BEG_DEBIT_BAL, BEG_CREDIT_BAL, BEG_BAL, END_BAL, END_DEBIT_BAL, END_CREDIT_BAL, DEBIT_BAL, CREDIT_BAL, MONTH_ID, YEAR_DEBIT_BAL, YEAR_CREDIT_BAL, CARRYOVER_DEBIT, CARRYOVER_CREDIT, YEAR_CARRYOVER_DEBIT, YEAR_CARRYOVER_CREDIT, DEBIT_NET, CREDIT_NET, YEAR_DEBIT_NET, YEAR_CREDIT_NET, STD_CODE, MAPPING_REASON, MAPPING_USER, MAPPING_TIME, SUB_PROP, IS_DUMMY) values (#{balanceId,jdbcType=VARCHAR}, #{periodId,jdbcType=DECIMAL}, #{acctCode,jdbcType=VARCHAR}, #{customerCode,jdbcType=VARCHAR}, #{begDebitBal,jdbcType=DECIMAL}, #{begCreditBal,jdbcType=DECIMAL}, #{begBal,jdbcType=DECIMAL}, #{endBal,jdbcType=DECIMAL}, #{endDebitBal,jdbcType=DECIMAL}, #{endCreditBal,jdbcType=DECIMAL}, #{debitBal,jdbcType=DECIMAL}, #{creditBal,jdbcType=DECIMAL}, #{monthId,jdbcType=DECIMAL}, #{yearDebitBal,jdbcType=DECIMAL}, #{yearCreditBal,jdbcType=DECIMAL}, #{carryoverDebit,jdbcType=DECIMAL}, #{carryoverCredit,jdbcType=DECIMAL}, #{yearCarryoverDebit,jdbcType=DECIMAL}, #{yearCarryoverCredit,jdbcType=DECIMAL}, #{debitNet,jdbcType=DECIMAL}, #{creditNet,jdbcType=DECIMAL}, #{yearDebitNet,jdbcType=DECIMAL}, #{yearCreditNet,jdbcType=DECIMAL}, #{stdCode,jdbcType=VARCHAR}, #{mappingReason,jdbcType=VARCHAR}, #{mappingUser,jdbcType=VARCHAR}, #{mappingTime,jdbcType=TIMESTAMP}, #{subProp,jdbcType=DECIMAL}, #{isDummy,jdbcType=DECIMAL}) </insert> <insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.Balance"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into BALANCE <trim prefix="(" suffix=")" suffixOverrides=","> <if test="balanceId != null"> BALANCE_ID, </if> <if test="periodId != null"> PERIOD_ID, </if> <if test="acctCode != null"> ACCT_CODE, </if> <if test="customerCode != null"> CUSTOMER_CODE, </if> <if test="begDebitBal != null"> BEG_DEBIT_BAL, </if> <if test="begCreditBal != null"> BEG_CREDIT_BAL, </if> <if test="begBal != null"> BEG_BAL, </if> <if test="endBal != null"> END_BAL, </if> <if test="endDebitBal != null"> END_DEBIT_BAL, </if> <if test="endCreditBal != null"> END_CREDIT_BAL, </if> <if test="debitBal != null"> DEBIT_BAL, </if> <if test="creditBal != null"> CREDIT_BAL, </if> <if test="monthId != null"> MONTH_ID, </if> <if test="yearDebitBal != null"> YEAR_DEBIT_BAL, </if> <if test="yearCreditBal != null"> YEAR_CREDIT_BAL, </if> <if test="carryoverDebit != null"> CARRYOVER_DEBIT, </if> <if test="carryoverCredit != null"> CARRYOVER_CREDIT, </if> <if test="yearCarryoverDebit != null"> YEAR_CARRYOVER_DEBIT, </if> <if test="yearCarryoverCredit != null"> YEAR_CARRYOVER_CREDIT, </if> <if test="debitNet != null"> DEBIT_NET, </if> <if test="creditNet != null"> CREDIT_NET, </if> <if test="yearDebitNet != null"> YEAR_DEBIT_NET, </if> <if test="yearCreditNet != null"> YEAR_CREDIT_NET, </if> <if test="stdCode != null"> STD_CODE, </if> <if test="mappingReason != null"> MAPPING_REASON, </if> <if test="mappingUser != null"> MAPPING_USER, </if> <if test="mappingTime != null"> MAPPING_TIME, </if> <if test="subProp != null"> SUB_PROP, </if> <if test="isDummy != null"> IS_DUMMY, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="balanceId != null"> #{balanceId,jdbcType=VARCHAR}, </if> <if test="periodId != null"> #{periodId,jdbcType=DECIMAL}, </if> <if test="acctCode != null"> #{acctCode,jdbcType=VARCHAR}, </if> <if test="customerCode != null"> #{customerCode,jdbcType=VARCHAR}, </if> <if test="begDebitBal != null"> #{begDebitBal,jdbcType=DECIMAL}, </if> <if test="begCreditBal != null"> #{begCreditBal,jdbcType=DECIMAL}, </if> <if test="begBal != null"> #{begBal,jdbcType=DECIMAL}, </if> <if test="endBal != null"> #{endBal,jdbcType=DECIMAL}, </if> <if test="endDebitBal != null"> #{endDebitBal,jdbcType=DECIMAL}, </if> <if test="endCreditBal != null"> #{endCreditBal,jdbcType=DECIMAL}, </if> <if test="debitBal != null"> #{debitBal,jdbcType=DECIMAL}, </if> <if test="creditBal != null"> #{creditBal,jdbcType=DECIMAL}, </if> <if test="monthId != null"> #{monthId,jdbcType=DECIMAL}, </if> <if test="yearDebitBal != null"> #{yearDebitBal,jdbcType=DECIMAL}, </if> <if test="yearCreditBal != null"> #{yearCreditBal,jdbcType=DECIMAL}, </if> <if test="carryoverDebit != null"> #{carryoverDebit,jdbcType=DECIMAL}, </if> <if test="carryoverCredit != null"> #{carryoverCredit,jdbcType=DECIMAL}, </if> <if test="yearCarryoverDebit != null"> #{yearCarryoverDebit,jdbcType=DECIMAL}, </if> <if test="yearCarryoverCredit != null"> #{yearCarryoverCredit,jdbcType=DECIMAL}, </if> <if test="debitNet != null"> #{debitNet,jdbcType=DECIMAL}, </if> <if test="creditNet != null"> #{creditNet,jdbcType=DECIMAL}, </if> <if test="yearDebitNet != null"> #{yearDebitNet,jdbcType=DECIMAL}, </if> <if test="yearCreditNet != null"> #{yearCreditNet,jdbcType=DECIMAL}, </if> <if test="stdCode != null"> #{stdCode,jdbcType=VARCHAR}, </if> <if test="mappingReason != null"> #{mappingReason,jdbcType=VARCHAR}, </if> <if test="mappingUser != null"> #{mappingUser,jdbcType=VARCHAR}, </if> <if test="mappingTime != null"> #{mappingTime,jdbcType=TIMESTAMP}, </if> <if test="subProp != null"> #{subProp,jdbcType=DECIMAL}, </if> <if test="isDummy != null"> #{isDummy,jdbcType=DECIMAL}, </if> </trim> </insert> <select id="countByExample" parameterType="pwc.taxtech.atms.vat.entity.BalanceExample" resultType="java.lang.Long"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select count(*) from BALANCE <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 BALANCE <set> <if test="record.balanceId != null"> BALANCE_ID = #{record.balanceId,jdbcType=VARCHAR}, </if> <if test="record.periodId != null"> PERIOD_ID = #{record.periodId,jdbcType=DECIMAL}, </if> <if test="record.acctCode != null"> ACCT_CODE = #{record.acctCode,jdbcType=VARCHAR}, </if> <if test="record.customerCode != null"> CUSTOMER_CODE = #{record.customerCode,jdbcType=VARCHAR}, </if> <if test="record.begDebitBal != null"> BEG_DEBIT_BAL = #{record.begDebitBal,jdbcType=DECIMAL}, </if> <if test="record.begCreditBal != null"> BEG_CREDIT_BAL = #{record.begCreditBal,jdbcType=DECIMAL}, </if> <if test="record.begBal != null"> BEG_BAL = #{record.begBal,jdbcType=DECIMAL}, </if> <if test="record.endBal != null"> END_BAL = #{record.endBal,jdbcType=DECIMAL}, </if> <if test="record.endDebitBal != null"> END_DEBIT_BAL = #{record.endDebitBal,jdbcType=DECIMAL}, </if> <if test="record.endCreditBal != null"> END_CREDIT_BAL = #{record.endCreditBal,jdbcType=DECIMAL}, </if> <if test="record.debitBal != null"> DEBIT_BAL = #{record.debitBal,jdbcType=DECIMAL}, </if> <if test="record.creditBal != null"> CREDIT_BAL = #{record.creditBal,jdbcType=DECIMAL}, </if> <if test="record.monthId != null"> MONTH_ID = #{record.monthId,jdbcType=DECIMAL}, </if> <if test="record.yearDebitBal != null"> YEAR_DEBIT_BAL = #{record.yearDebitBal,jdbcType=DECIMAL}, </if> <if test="record.yearCreditBal != null"> YEAR_CREDIT_BAL = #{record.yearCreditBal,jdbcType=DECIMAL}, </if> <if test="record.carryoverDebit != null"> CARRYOVER_DEBIT = #{record.carryoverDebit,jdbcType=DECIMAL}, </if> <if test="record.carryoverCredit != null"> CARRYOVER_CREDIT = #{record.carryoverCredit,jdbcType=DECIMAL}, </if> <if test="record.yearCarryoverDebit != null"> YEAR_CARRYOVER_DEBIT = #{record.yearCarryoverDebit,jdbcType=DECIMAL}, </if> <if test="record.yearCarryoverCredit != null"> YEAR_CARRYOVER_CREDIT = #{record.yearCarryoverCredit,jdbcType=DECIMAL}, </if> <if test="record.debitNet != null"> DEBIT_NET = #{record.debitNet,jdbcType=DECIMAL}, </if> <if test="record.creditNet != null"> CREDIT_NET = #{record.creditNet,jdbcType=DECIMAL}, </if> <if test="record.yearDebitNet != null"> YEAR_DEBIT_NET = #{record.yearDebitNet,jdbcType=DECIMAL}, </if> <if test="record.yearCreditNet != null"> YEAR_CREDIT_NET = #{record.yearCreditNet,jdbcType=DECIMAL}, </if> <if test="record.stdCode != null"> STD_CODE = #{record.stdCode,jdbcType=VARCHAR}, </if> <if test="record.mappingReason != null"> MAPPING_REASON = #{record.mappingReason,jdbcType=VARCHAR}, </if> <if test="record.mappingUser != null"> MAPPING_USER = #{record.mappingUser,jdbcType=VARCHAR}, </if> <if test="record.mappingTime != null"> MAPPING_TIME = #{record.mappingTime,jdbcType=TIMESTAMP}, </if> <if test="record.subProp != null"> SUB_PROP = #{record.subProp,jdbcType=DECIMAL}, </if> <if test="record.isDummy != null"> IS_DUMMY = #{record.isDummy,jdbcType=DECIMAL}, </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 BALANCE set BALANCE_ID = #{record.balanceId,jdbcType=VARCHAR}, PERIOD_ID = #{record.periodId,jdbcType=DECIMAL}, ACCT_CODE = #{record.acctCode,jdbcType=VARCHAR}, CUSTOMER_CODE = #{record.customerCode,jdbcType=VARCHAR}, BEG_DEBIT_BAL = #{record.begDebitBal,jdbcType=DECIMAL}, BEG_CREDIT_BAL = #{record.begCreditBal,jdbcType=DECIMAL}, BEG_BAL = #{record.begBal,jdbcType=DECIMAL}, END_BAL = #{record.endBal,jdbcType=DECIMAL}, END_DEBIT_BAL = #{record.endDebitBal,jdbcType=DECIMAL}, END_CREDIT_BAL = #{record.endCreditBal,jdbcType=DECIMAL}, DEBIT_BAL = #{record.debitBal,jdbcType=DECIMAL}, CREDIT_BAL = #{record.creditBal,jdbcType=DECIMAL}, MONTH_ID = #{record.monthId,jdbcType=DECIMAL}, YEAR_DEBIT_BAL = #{record.yearDebitBal,jdbcType=DECIMAL}, YEAR_CREDIT_BAL = #{record.yearCreditBal,jdbcType=DECIMAL}, CARRYOVER_DEBIT = #{record.carryoverDebit,jdbcType=DECIMAL}, CARRYOVER_CREDIT = #{record.carryoverCredit,jdbcType=DECIMAL}, YEAR_CARRYOVER_DEBIT = #{record.yearCarryoverDebit,jdbcType=DECIMAL}, YEAR_CARRYOVER_CREDIT = #{record.yearCarryoverCredit,jdbcType=DECIMAL}, DEBIT_NET = #{record.debitNet,jdbcType=DECIMAL}, CREDIT_NET = #{record.creditNet,jdbcType=DECIMAL}, YEAR_DEBIT_NET = #{record.yearDebitNet,jdbcType=DECIMAL}, YEAR_CREDIT_NET = #{record.yearCreditNet,jdbcType=DECIMAL}, STD_CODE = #{record.stdCode,jdbcType=VARCHAR}, MAPPING_REASON = #{record.mappingReason,jdbcType=VARCHAR}, MAPPING_USER = #{record.mappingUser,jdbcType=VARCHAR}, MAPPING_TIME = #{record.mappingTime,jdbcType=TIMESTAMP}, SUB_PROP = #{record.subProp,jdbcType=DECIMAL}, IS_DUMMY = #{record.isDummy,jdbcType=DECIMAL} <if test="_parameter != null"> <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.vat.entity.Balance"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update BALANCE <set> <if test="periodId != null"> PERIOD_ID = #{periodId,jdbcType=DECIMAL}, </if> <if test="acctCode != null"> ACCT_CODE = #{acctCode,jdbcType=VARCHAR}, </if> <if test="customerCode != null"> CUSTOMER_CODE = #{customerCode,jdbcType=VARCHAR}, </if> <if test="begDebitBal != null"> BEG_DEBIT_BAL = #{begDebitBal,jdbcType=DECIMAL}, </if> <if test="begCreditBal != null"> BEG_CREDIT_BAL = #{begCreditBal,jdbcType=DECIMAL}, </if> <if test="begBal != null"> BEG_BAL = #{begBal,jdbcType=DECIMAL}, </if> <if test="endBal != null"> END_BAL = #{endBal,jdbcType=DECIMAL}, </if> <if test="endDebitBal != null"> END_DEBIT_BAL = #{endDebitBal,jdbcType=DECIMAL}, </if> <if test="endCreditBal != null"> END_CREDIT_BAL = #{endCreditBal,jdbcType=DECIMAL}, </if> <if test="debitBal != null"> DEBIT_BAL = #{debitBal,jdbcType=DECIMAL}, </if> <if test="creditBal != null"> CREDIT_BAL = #{creditBal,jdbcType=DECIMAL}, </if> <if test="monthId != null"> MONTH_ID = #{monthId,jdbcType=DECIMAL}, </if> <if test="yearDebitBal != null"> YEAR_DEBIT_BAL = #{yearDebitBal,jdbcType=DECIMAL}, </if> <if test="yearCreditBal != null"> YEAR_CREDIT_BAL = #{yearCreditBal,jdbcType=DECIMAL}, </if> <if test="carryoverDebit != null"> CARRYOVER_DEBIT = #{carryoverDebit,jdbcType=DECIMAL}, </if> <if test="carryoverCredit != null"> CARRYOVER_CREDIT = #{carryoverCredit,jdbcType=DECIMAL}, </if> <if test="yearCarryoverDebit != null"> YEAR_CARRYOVER_DEBIT = #{yearCarryoverDebit,jdbcType=DECIMAL}, </if> <if test="yearCarryoverCredit != null"> YEAR_CARRYOVER_CREDIT = #{yearCarryoverCredit,jdbcType=DECIMAL}, </if> <if test="debitNet != null"> DEBIT_NET = #{debitNet,jdbcType=DECIMAL}, </if> <if test="creditNet != null"> CREDIT_NET = #{creditNet,jdbcType=DECIMAL}, </if> <if test="yearDebitNet != null"> YEAR_DEBIT_NET = #{yearDebitNet,jdbcType=DECIMAL}, </if> <if test="yearCreditNet != null"> YEAR_CREDIT_NET = #{yearCreditNet,jdbcType=DECIMAL}, </if> <if test="stdCode != null"> STD_CODE = #{stdCode,jdbcType=VARCHAR}, </if> <if test="mappingReason != null"> MAPPING_REASON = #{mappingReason,jdbcType=VARCHAR}, </if> <if test="mappingUser != null"> MAPPING_USER = #{mappingUser,jdbcType=VARCHAR}, </if> <if test="mappingTime != null"> MAPPING_TIME = #{mappingTime,jdbcType=TIMESTAMP}, </if> <if test="subProp != null"> SUB_PROP = #{subProp,jdbcType=DECIMAL}, </if> <if test="isDummy != null"> IS_DUMMY = #{isDummy,jdbcType=DECIMAL}, </if> </set> where BALANCE_ID = #{balanceId,jdbcType=VARCHAR} </update> <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.Balance"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update BALANCE set PERIOD_ID = #{periodId,jdbcType=DECIMAL}, ACCT_CODE = #{acctCode,jdbcType=VARCHAR}, CUSTOMER_CODE = #{customerCode,jdbcType=VARCHAR}, BEG_DEBIT_BAL = #{begDebitBal,jdbcType=DECIMAL}, BEG_CREDIT_BAL = #{begCreditBal,jdbcType=DECIMAL}, BEG_BAL = #{begBal,jdbcType=DECIMAL}, END_BAL = #{endBal,jdbcType=DECIMAL}, END_DEBIT_BAL = #{endDebitBal,jdbcType=DECIMAL}, END_CREDIT_BAL = #{endCreditBal,jdbcType=DECIMAL}, DEBIT_BAL = #{debitBal,jdbcType=DECIMAL}, CREDIT_BAL = #{creditBal,jdbcType=DECIMAL}, MONTH_ID = #{monthId,jdbcType=DECIMAL}, YEAR_DEBIT_BAL = #{yearDebitBal,jdbcType=DECIMAL}, YEAR_CREDIT_BAL = #{yearCreditBal,jdbcType=DECIMAL}, CARRYOVER_DEBIT = #{carryoverDebit,jdbcType=DECIMAL}, CARRYOVER_CREDIT = #{carryoverCredit,jdbcType=DECIMAL}, YEAR_CARRYOVER_DEBIT = #{yearCarryoverDebit,jdbcType=DECIMAL}, YEAR_CARRYOVER_CREDIT = #{yearCarryoverCredit,jdbcType=DECIMAL}, DEBIT_NET = #{debitNet,jdbcType=DECIMAL}, CREDIT_NET = #{creditNet,jdbcType=DECIMAL}, YEAR_DEBIT_NET = #{yearDebitNet,jdbcType=DECIMAL}, YEAR_CREDIT_NET = #{yearCreditNet,jdbcType=DECIMAL}, STD_CODE = #{stdCode,jdbcType=VARCHAR}, MAPPING_REASON = #{mappingReason,jdbcType=VARCHAR}, MAPPING_USER = #{mappingUser,jdbcType=VARCHAR}, MAPPING_TIME = #{mappingTime,jdbcType=TIMESTAMP}, SUB_PROP = #{subProp,jdbcType=DECIMAL}, IS_DUMMY = #{isDummy,jdbcType=DECIMAL} where BALANCE_ID = #{balanceId,jdbcType=VARCHAR} </update> <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.BalanceExample" 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 BALANCE <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> <if test="orderByClause != null"> order by ${orderByClause} </if> </select> </mapper>