<?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.CustBalanceStdManualMapper"> <resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.CustBalanceStdManual"> <!-- 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_BAL" jdbcType="DECIMAL" property="begBal" /> <result column="BEG_DEBIT_BAL" jdbcType="DECIMAL" property="begDebitBal" /> <result column="BEG_CREDIT_BAL" jdbcType="DECIMAL" property="begCreditBal" /> <result column="DEBIT_BAL" jdbcType="DECIMAL" property="debitBal" /> <result column="CREDIT_BAL" jdbcType="DECIMAL" property="creditBal" /> <result column="YEAR_DEBIT_BAL" jdbcType="DECIMAL" property="yearDebitBal" /> <result column="YEAR_CREDIT_BAL" jdbcType="DECIMAL" property="yearCreditBal" /> <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" /> </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_BAL, BEG_DEBIT_BAL, BEG_CREDIT_BAL, DEBIT_BAL, CREDIT_BAL, YEAR_DEBIT_BAL, YEAR_CREDIT_BAL, END_BAL, END_DEBIT_BAL, END_CREDIT_BAL </sql> <select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.CustBalanceStdManualExample" 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 CUST_BALANCE_STD_MANUAL <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 CUST_BALANCE_STD_MANUAL 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 CUST_BALANCE_STD_MANUAL where BALANCE_ID = #{balanceId,jdbcType=VARCHAR} </delete> <delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.CustBalanceStdManualExample"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> delete from CUST_BALANCE_STD_MANUAL <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> </delete> <insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.CustBalanceStdManual"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into CUST_BALANCE_STD_MANUAL (BALANCE_ID, PERIOD_ID, ACCT_CODE, CUSTOMER_CODE, BEG_BAL, BEG_DEBIT_BAL, BEG_CREDIT_BAL, DEBIT_BAL, CREDIT_BAL, YEAR_DEBIT_BAL, YEAR_CREDIT_BAL, END_BAL, END_DEBIT_BAL, END_CREDIT_BAL) values (#{balanceId,jdbcType=VARCHAR}, #{periodId,jdbcType=DECIMAL}, #{acctCode,jdbcType=VARCHAR}, #{customerCode,jdbcType=VARCHAR}, #{begBal,jdbcType=DECIMAL}, #{begDebitBal,jdbcType=DECIMAL}, #{begCreditBal,jdbcType=DECIMAL}, #{debitBal,jdbcType=DECIMAL}, #{creditBal,jdbcType=DECIMAL}, #{yearDebitBal,jdbcType=DECIMAL}, #{yearCreditBal,jdbcType=DECIMAL}, #{endBal,jdbcType=DECIMAL}, #{endDebitBal,jdbcType=DECIMAL}, #{endCreditBal,jdbcType=DECIMAL}) </insert> <insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.CustBalanceStdManual"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into CUST_BALANCE_STD_MANUAL <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="begBal != null"> BEG_BAL, </if> <if test="begDebitBal != null"> BEG_DEBIT_BAL, </if> <if test="begCreditBal != null"> BEG_CREDIT_BAL, </if> <if test="debitBal != null"> DEBIT_BAL, </if> <if test="creditBal != null"> CREDIT_BAL, </if> <if test="yearDebitBal != null"> YEAR_DEBIT_BAL, </if> <if test="yearCreditBal != null"> YEAR_CREDIT_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> </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="begBal != null"> #{begBal,jdbcType=DECIMAL}, </if> <if test="begDebitBal != null"> #{begDebitBal,jdbcType=DECIMAL}, </if> <if test="begCreditBal != null"> #{begCreditBal,jdbcType=DECIMAL}, </if> <if test="debitBal != null"> #{debitBal,jdbcType=DECIMAL}, </if> <if test="creditBal != null"> #{creditBal,jdbcType=DECIMAL}, </if> <if test="yearDebitBal != null"> #{yearDebitBal,jdbcType=DECIMAL}, </if> <if test="yearCreditBal != null"> #{yearCreditBal,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> </trim> </insert> <select id="countByExample" parameterType="pwc.taxtech.atms.vat.entity.CustBalanceStdManualExample" resultType="java.lang.Long"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select count(*) from CUST_BALANCE_STD_MANUAL <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 CUST_BALANCE_STD_MANUAL <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.begBal != null"> BEG_BAL = #{record.begBal,jdbcType=DECIMAL}, </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.debitBal != null"> DEBIT_BAL = #{record.debitBal,jdbcType=DECIMAL}, </if> <if test="record.creditBal != null"> CREDIT_BAL = #{record.creditBal,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.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> </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 CUST_BALANCE_STD_MANUAL 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_BAL = #{record.begBal,jdbcType=DECIMAL}, BEG_DEBIT_BAL = #{record.begDebitBal,jdbcType=DECIMAL}, BEG_CREDIT_BAL = #{record.begCreditBal,jdbcType=DECIMAL}, DEBIT_BAL = #{record.debitBal,jdbcType=DECIMAL}, CREDIT_BAL = #{record.creditBal,jdbcType=DECIMAL}, YEAR_DEBIT_BAL = #{record.yearDebitBal,jdbcType=DECIMAL}, YEAR_CREDIT_BAL = #{record.yearCreditBal,jdbcType=DECIMAL}, END_BAL = #{record.endBal,jdbcType=DECIMAL}, END_DEBIT_BAL = #{record.endDebitBal,jdbcType=DECIMAL}, END_CREDIT_BAL = #{record.endCreditBal,jdbcType=DECIMAL} <if test="_parameter != null"> <include refid="Update_By_Example_Where_Clause" /> </if> </update> <update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.vat.entity.CustBalanceStdManual"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update CUST_BALANCE_STD_MANUAL <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="begBal != null"> BEG_BAL = #{begBal,jdbcType=DECIMAL}, </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="debitBal != null"> DEBIT_BAL = #{debitBal,jdbcType=DECIMAL}, </if> <if test="creditBal != null"> CREDIT_BAL = #{creditBal,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="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> </set> where BALANCE_ID = #{balanceId,jdbcType=VARCHAR} </update> <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.CustBalanceStdManual"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update CUST_BALANCE_STD_MANUAL set PERIOD_ID = #{periodId,jdbcType=DECIMAL}, ACCT_CODE = #{acctCode,jdbcType=VARCHAR}, CUSTOMER_CODE = #{customerCode,jdbcType=VARCHAR}, BEG_BAL = #{begBal,jdbcType=DECIMAL}, BEG_DEBIT_BAL = #{begDebitBal,jdbcType=DECIMAL}, BEG_CREDIT_BAL = #{begCreditBal,jdbcType=DECIMAL}, DEBIT_BAL = #{debitBal,jdbcType=DECIMAL}, CREDIT_BAL = #{creditBal,jdbcType=DECIMAL}, YEAR_DEBIT_BAL = #{yearDebitBal,jdbcType=DECIMAL}, YEAR_CREDIT_BAL = #{yearCreditBal,jdbcType=DECIMAL}, END_BAL = #{endBal,jdbcType=DECIMAL}, END_DEBIT_BAL = #{endDebitBal,jdbcType=DECIMAL}, END_CREDIT_BAL = #{endCreditBal,jdbcType=DECIMAL} where BALANCE_ID = #{balanceId,jdbcType=VARCHAR} </update> <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.CustBalanceStdManualExample" 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 CUST_BALANCE_STD_MANUAL <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> <if test="orderByClause != null"> order by ${orderByClause} </if> </select> </mapper>