<?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.CustBalanceStdMapper"> <resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.CustBalanceStd"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> <id column="BalanceID" jdbcType="VARCHAR" property="balanceID" /> <result column="PeriodID" jdbcType="INTEGER" property="periodID" /> <result column="AcctCode" jdbcType="VARCHAR" property="acctCode" /> <result column="CustomerCode" jdbcType="VARCHAR" property="customerCode" /> <result column="BegBal" jdbcType="DECIMAL" property="begBal" /> <result column="DebitBal" jdbcType="DECIMAL" property="debitBal" /> <result column="CreditBal" jdbcType="DECIMAL" property="creditBal" /> <result column="YearDebitBal" jdbcType="DECIMAL" property="yearDebitBal" /> <result column="YearCreditBal" jdbcType="DECIMAL" property="yearCreditBal" /> <result column="EndBal" jdbcType="DECIMAL" property="endBal" /> <result column="BegDebitBal" jdbcType="DECIMAL" property="begDebitBal" /> <result column="BegCreditBal" jdbcType="DECIMAL" property="begCreditBal" /> <result column="EndDebitBal" jdbcType="DECIMAL" property="endDebitBal" /> <result column="EndCreditBal" 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. --> BalanceID, PeriodID, AcctCode, CustomerCode, BegBal, DebitBal, CreditBal, YearDebitBal, YearCreditBal, EndBal, BegDebitBal, BegCreditBal, EndDebitBal, EndCreditBal </sql> <select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.CustBalanceStdExample" 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 CustBalanceStd <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 CustBalanceStd where BalanceID = #{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 CustBalanceStd where BalanceID = #{balanceID,jdbcType=VARCHAR} </delete> <delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.CustBalanceStdExample"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> delete from CustBalanceStd <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> </delete> <insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.CustBalanceStd"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into CustBalanceStd (BalanceID, PeriodID, AcctCode, CustomerCode, BegBal, DebitBal, CreditBal, YearDebitBal, YearCreditBal, EndBal, BegDebitBal, BegCreditBal, EndDebitBal, EndCreditBal) values (#{balanceID,jdbcType=VARCHAR}, #{periodID,jdbcType=INTEGER}, #{acctCode,jdbcType=VARCHAR}, #{customerCode,jdbcType=VARCHAR}, #{begBal,jdbcType=DECIMAL}, #{debitBal,jdbcType=DECIMAL}, #{creditBal,jdbcType=DECIMAL}, #{yearDebitBal,jdbcType=DECIMAL}, #{yearCreditBal,jdbcType=DECIMAL}, #{endBal,jdbcType=DECIMAL}, #{begDebitBal,jdbcType=DECIMAL}, #{begCreditBal,jdbcType=DECIMAL}, #{endDebitBal,jdbcType=DECIMAL}, #{endCreditBal,jdbcType=DECIMAL}) </insert> <insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.CustBalanceStd"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> insert into CustBalanceStd <trim prefix="(" suffix=")" suffixOverrides=","> <if test="balanceID != null"> BalanceID, </if> <if test="periodID != null"> PeriodID, </if> <if test="acctCode != null"> AcctCode, </if> <if test="customerCode != null"> CustomerCode, </if> <if test="begBal != null"> BegBal, </if> <if test="debitBal != null"> DebitBal, </if> <if test="creditBal != null"> CreditBal, </if> <if test="yearDebitBal != null"> YearDebitBal, </if> <if test="yearCreditBal != null"> YearCreditBal, </if> <if test="endBal != null"> EndBal, </if> <if test="begDebitBal != null"> BegDebitBal, </if> <if test="begCreditBal != null"> BegCreditBal, </if> <if test="endDebitBal != null"> EndDebitBal, </if> <if test="endCreditBal != null"> EndCreditBal, </if> </trim> <trim prefix="values (" suffix=")" suffixOverrides=","> <if test="balanceID != null"> #{balanceID,jdbcType=VARCHAR}, </if> <if test="periodID != null"> #{periodID,jdbcType=INTEGER}, </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="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="begDebitBal != null"> #{begDebitBal,jdbcType=DECIMAL}, </if> <if test="begCreditBal != null"> #{begCreditBal,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.CustBalanceStdExample" resultType="java.lang.Long"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> select count(*) from CustBalanceStd <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 CustBalanceStd <set> <if test="record.balanceID != null"> BalanceID = #{record.balanceID,jdbcType=VARCHAR}, </if> <if test="record.periodID != null"> PeriodID = #{record.periodID,jdbcType=INTEGER}, </if> <if test="record.acctCode != null"> AcctCode = #{record.acctCode,jdbcType=VARCHAR}, </if> <if test="record.customerCode != null"> CustomerCode = #{record.customerCode,jdbcType=VARCHAR}, </if> <if test="record.begBal != null"> BegBal = #{record.begBal,jdbcType=DECIMAL}, </if> <if test="record.debitBal != null"> DebitBal = #{record.debitBal,jdbcType=DECIMAL}, </if> <if test="record.creditBal != null"> CreditBal = #{record.creditBal,jdbcType=DECIMAL}, </if> <if test="record.yearDebitBal != null"> YearDebitBal = #{record.yearDebitBal,jdbcType=DECIMAL}, </if> <if test="record.yearCreditBal != null"> YearCreditBal = #{record.yearCreditBal,jdbcType=DECIMAL}, </if> <if test="record.endBal != null"> EndBal = #{record.endBal,jdbcType=DECIMAL}, </if> <if test="record.begDebitBal != null"> BegDebitBal = #{record.begDebitBal,jdbcType=DECIMAL}, </if> <if test="record.begCreditBal != null"> BegCreditBal = #{record.begCreditBal,jdbcType=DECIMAL}, </if> <if test="record.endDebitBal != null"> EndDebitBal = #{record.endDebitBal,jdbcType=DECIMAL}, </if> <if test="record.endCreditBal != null"> EndCreditBal = #{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 CustBalanceStd set BalanceID = #{record.balanceID,jdbcType=VARCHAR}, PeriodID = #{record.periodID,jdbcType=INTEGER}, AcctCode = #{record.acctCode,jdbcType=VARCHAR}, CustomerCode = #{record.customerCode,jdbcType=VARCHAR}, BegBal = #{record.begBal,jdbcType=DECIMAL}, DebitBal = #{record.debitBal,jdbcType=DECIMAL}, CreditBal = #{record.creditBal,jdbcType=DECIMAL}, YearDebitBal = #{record.yearDebitBal,jdbcType=DECIMAL}, YearCreditBal = #{record.yearCreditBal,jdbcType=DECIMAL}, EndBal = #{record.endBal,jdbcType=DECIMAL}, BegDebitBal = #{record.begDebitBal,jdbcType=DECIMAL}, BegCreditBal = #{record.begCreditBal,jdbcType=DECIMAL}, EndDebitBal = #{record.endDebitBal,jdbcType=DECIMAL}, EndCreditBal = #{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.CustBalanceStd"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update CustBalanceStd <set> <if test="periodID != null"> PeriodID = #{periodID,jdbcType=INTEGER}, </if> <if test="acctCode != null"> AcctCode = #{acctCode,jdbcType=VARCHAR}, </if> <if test="customerCode != null"> CustomerCode = #{customerCode,jdbcType=VARCHAR}, </if> <if test="begBal != null"> BegBal = #{begBal,jdbcType=DECIMAL}, </if> <if test="debitBal != null"> DebitBal = #{debitBal,jdbcType=DECIMAL}, </if> <if test="creditBal != null"> CreditBal = #{creditBal,jdbcType=DECIMAL}, </if> <if test="yearDebitBal != null"> YearDebitBal = #{yearDebitBal,jdbcType=DECIMAL}, </if> <if test="yearCreditBal != null"> YearCreditBal = #{yearCreditBal,jdbcType=DECIMAL}, </if> <if test="endBal != null"> EndBal = #{endBal,jdbcType=DECIMAL}, </if> <if test="begDebitBal != null"> BegDebitBal = #{begDebitBal,jdbcType=DECIMAL}, </if> <if test="begCreditBal != null"> BegCreditBal = #{begCreditBal,jdbcType=DECIMAL}, </if> <if test="endDebitBal != null"> EndDebitBal = #{endDebitBal,jdbcType=DECIMAL}, </if> <if test="endCreditBal != null"> EndCreditBal = #{endCreditBal,jdbcType=DECIMAL}, </if> </set> where BalanceID = #{balanceID,jdbcType=VARCHAR} </update> <update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.CustBalanceStd"> <!-- WARNING - @mbg.generated This element is automatically generated by MyBatis Generator, do not modify. --> update CustBalanceStd set PeriodID = #{periodID,jdbcType=INTEGER}, AcctCode = #{acctCode,jdbcType=VARCHAR}, CustomerCode = #{customerCode,jdbcType=VARCHAR}, BegBal = #{begBal,jdbcType=DECIMAL}, DebitBal = #{debitBal,jdbcType=DECIMAL}, CreditBal = #{creditBal,jdbcType=DECIMAL}, YearDebitBal = #{yearDebitBal,jdbcType=DECIMAL}, YearCreditBal = #{yearCreditBal,jdbcType=DECIMAL}, EndBal = #{endBal,jdbcType=DECIMAL}, BegDebitBal = #{begDebitBal,jdbcType=DECIMAL}, BegCreditBal = #{begCreditBal,jdbcType=DECIMAL}, EndDebitBal = #{endDebitBal,jdbcType=DECIMAL}, EndCreditBal = #{endCreditBal,jdbcType=DECIMAL} where BalanceID = #{balanceID,jdbcType=VARCHAR} </update> <select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.CustBalanceStdExample" 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 CustBalanceStd <if test="_parameter != null"> <include refid="Example_Where_Clause" /> </if> <if test="orderByClause != null"> order by ${orderByClause} </if> </select> </mapper>