Commit 91343675 authored by gary's avatar gary

tb_final

parent 6452bee7
......@@ -41,7 +41,12 @@
<property name="rootInterface" value="pwc.taxtech.atms.MyVatMapper" />
</javaClientGenerator>
<table tableName="certified_invoices_list" domainObjectName="CertifiedInvoicesList">
<table tableName="trial_balance_final" domainObjectName="TrialBalanceFinal">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
<!--<table tableName="certified_invoices_list" domainObjectName="CertifiedInvoicesList">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
......@@ -51,7 +56,7 @@
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
<!--<table tableName="revenue_config" domainObjectName="RevenueConfig">
<table tableName="revenue_config" domainObjectName="RevenueConfig">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
<columnOverride column="account_type" javaType="java.lang.Integer" jdbcType="TINYINT"/>
......
package pwc.taxtech.atms.vat.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import pwc.taxtech.atms.MyVatMapper;
import pwc.taxtech.atms.vat.entity.TrialBalance;
import pwc.taxtech.atms.vat.entity.TrialBalanceExample;
@Mapper
public interface TrialBalanceFinalMapper extends MyVatMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table trial_balance_final
*
* @mbg.generated
*/
long countByExample(TrialBalanceExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table trial_balance_final
*
* @mbg.generated
*/
int deleteByExample(TrialBalanceExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table trial_balance_final
*
* @mbg.generated
*/
int deleteByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table trial_balance_final
*
* @mbg.generated
*/
int insert(TrialBalance record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table trial_balance_final
*
* @mbg.generated
*/
int insertSelective(TrialBalance record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table trial_balance_final
*
* @mbg.generated
*/
List<TrialBalance> selectByExampleWithRowbounds(TrialBalanceExample example, RowBounds rowBounds);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table trial_balance_final
*
* @mbg.generated
*/
List<TrialBalance> selectByExample(TrialBalanceExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table trial_balance_final
*
* @mbg.generated
*/
TrialBalance selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table trial_balance_final
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") TrialBalance record, @Param("example") TrialBalanceExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table trial_balance_final
*
* @mbg.generated
*/
int updateByExample(@Param("record") TrialBalance record, @Param("example") TrialBalanceExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table trial_balance_final
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(TrialBalance record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table trial_balance_final
*
* @mbg.generated
*/
int updateByPrimaryKey(TrialBalance record);
}
\ No newline at end of file
<?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.TrialBalanceFinalMapper">
<resultMap id="BaseResultMap" type="pwc.taxtech.atms.vat.entity.TrialBalance">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id column="id" jdbcType="BIGINT" property="id" />
<result column="organization_id" jdbcType="VARCHAR" property="organizationId" />
<result column="project_id" jdbcType="VARCHAR" property="projectId" />
<result column="date" jdbcType="TIMESTAMP" property="date" />
<result column="source" jdbcType="VARCHAR" property="source" />
<result column="period" jdbcType="INTEGER" property="period" />
<result column="ledger_id" jdbcType="VARCHAR" property="ledgerId" />
<result column="ledger_name" jdbcType="VARCHAR" property="ledgerName" />
<result column="currency_code" jdbcType="VARCHAR" property="currencyCode" />
<result column="status" jdbcType="VARCHAR" property="status" />
<result column="category" jdbcType="VARCHAR" property="category" />
<result column="account_category" jdbcType="VARCHAR" property="accountCategory" />
<result column="acct_code1" jdbcType="VARCHAR" property="acctCode1" />
<result column="acct_name1" jdbcType="VARCHAR" property="acctName1" />
<result column="acct_name2" jdbcType="VARCHAR" property="acctName2" />
<result column="acct_name3" jdbcType="VARCHAR" property="acctName3" />
<result column="segment1" jdbcType="VARCHAR" property="segment1" />
<result column="segment2" jdbcType="VARCHAR" property="segment2" />
<result column="segment3" jdbcType="VARCHAR" property="segment3" />
<result column="segment4" jdbcType="VARCHAR" property="segment4" />
<result column="segment5" jdbcType="VARCHAR" property="segment5" />
<result column="segment6" jdbcType="VARCHAR" property="segment6" />
<result column="segment7" jdbcType="VARCHAR" property="segment7" />
<result column="segment8" jdbcType="VARCHAR" property="segment8" />
<result column="segment9" jdbcType="VARCHAR" property="segment9" />
<result column="segment10" jdbcType="VARCHAR" property="segment10" />
<result column="segment1_name" jdbcType="VARCHAR" property="segment1Name" />
<result column="segment2_name" jdbcType="VARCHAR" property="segment2Name" />
<result column="segment3_name" jdbcType="VARCHAR" property="segment3Name" />
<result column="segment4_name" jdbcType="VARCHAR" property="segment4Name" />
<result column="segment5_name" jdbcType="VARCHAR" property="segment5Name" />
<result column="segment6_name" jdbcType="VARCHAR" property="segment6Name" />
<result column="segment7_name" jdbcType="VARCHAR" property="segment7Name" />
<result column="segment8_name" jdbcType="VARCHAR" property="segment8Name" />
<result column="segment9_name" jdbcType="VARCHAR" property="segment9Name" />
<result column="segment10_name" jdbcType="VARCHAR" property="segment10Name" />
<result column="beg_bal" jdbcType="DECIMAL" property="begBal" />
<result column="period_dr" jdbcType="DECIMAL" property="periodDr" />
<result column="period_cr" jdbcType="DECIMAL" property="periodCr" />
<result column="end_bal" jdbcType="DECIMAL" property="endBal" />
<result column="qtd_dr" jdbcType="DECIMAL" property="qtdDr" />
<result column="qtd_cr" jdbcType="DECIMAL" property="qtdCr" />
<result column="ytd_dr" jdbcType="DECIMAL" property="ytdDr" />
<result column="ytd_cr" jdbcType="DECIMAL" property="ytdCr" />
<result column="beg_bal_beq" jdbcType="DECIMAL" property="begBalBeq" />
<result column="period_dr_beq" jdbcType="DECIMAL" property="periodDrBeq" />
<result column="period_cr_beq" jdbcType="DECIMAL" property="periodCrBeq" />
<result column="end_bal_beq" jdbcType="DECIMAL" property="endBalBeq" />
<result column="qtd_dr_beq" jdbcType="DECIMAL" property="qtdDrBeq" />
<result column="qtd_cr_beq" jdbcType="DECIMAL" property="qtdCrBeq" />
<result column="ytd_dr_beq" jdbcType="DECIMAL" property="ytdDrBeq" />
<result column="ytd_cr_beq" jdbcType="DECIMAL" property="ytdCrBeq" />
<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, organization_id, project_id, `date`, `source`, period, ledger_id, ledger_name,
currency_code, `status`, category, account_category, acct_code1, acct_name1, acct_name2,
acct_name3, segment1, segment2, segment3, segment4, segment5, segment6, segment7,
segment8, segment9, segment10, segment1_name, segment2_name, segment3_name, segment4_name,
segment5_name, segment6_name, segment7_name, segment8_name, segment9_name, segment10_name,
beg_bal, period_dr, period_cr, end_bal, qtd_dr, qtd_cr, ytd_dr, ytd_cr, beg_bal_beq,
period_dr_beq, period_cr_beq, end_bal_beq, qtd_dr_beq, qtd_cr_beq, ytd_dr_beq, ytd_cr_beq,
create_time, update_time
</sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.vat.entity.TrialBalanceExample" 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 trial_balance_final
<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.Long" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
from trial_balance_final
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from trial_balance_final
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.vat.entity.TrialBalanceExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
delete from trial_balance_final
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="pwc.taxtech.atms.vat.entity.TrialBalance">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into trial_balance_final (id, organization_id, project_id,
`date`, `source`, period,
ledger_id, ledger_name, currency_code,
`status`, category, account_category,
acct_code1, acct_name1, acct_name2,
acct_name3, segment1, segment2,
segment3, segment4, segment5,
segment6, segment7, segment8,
segment9, segment10, segment1_name,
segment2_name, segment3_name, segment4_name,
segment5_name, segment6_name, segment7_name,
segment8_name, segment9_name, segment10_name,
beg_bal, period_dr, period_cr,
end_bal, qtd_dr, qtd_cr,
ytd_dr, ytd_cr, beg_bal_beq,
period_dr_beq, period_cr_beq, end_bal_beq,
qtd_dr_beq, qtd_cr_beq, ytd_dr_beq,
ytd_cr_beq, create_time, update_time
)
values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR},
#{date,jdbcType=TIMESTAMP}, #{source,jdbcType=VARCHAR}, #{period,jdbcType=INTEGER},
#{ledgerId,jdbcType=VARCHAR}, #{ledgerName,jdbcType=VARCHAR}, #{currencyCode,jdbcType=VARCHAR},
#{status,jdbcType=VARCHAR}, #{category,jdbcType=VARCHAR}, #{accountCategory,jdbcType=VARCHAR},
#{acctCode1,jdbcType=VARCHAR}, #{acctName1,jdbcType=VARCHAR}, #{acctName2,jdbcType=VARCHAR},
#{acctName3,jdbcType=VARCHAR}, #{segment1,jdbcType=VARCHAR}, #{segment2,jdbcType=VARCHAR},
#{segment3,jdbcType=VARCHAR}, #{segment4,jdbcType=VARCHAR}, #{segment5,jdbcType=VARCHAR},
#{segment6,jdbcType=VARCHAR}, #{segment7,jdbcType=VARCHAR}, #{segment8,jdbcType=VARCHAR},
#{segment9,jdbcType=VARCHAR}, #{segment10,jdbcType=VARCHAR}, #{segment1Name,jdbcType=VARCHAR},
#{segment2Name,jdbcType=VARCHAR}, #{segment3Name,jdbcType=VARCHAR}, #{segment4Name,jdbcType=VARCHAR},
#{segment5Name,jdbcType=VARCHAR}, #{segment6Name,jdbcType=VARCHAR}, #{segment7Name,jdbcType=VARCHAR},
#{segment8Name,jdbcType=VARCHAR}, #{segment9Name,jdbcType=VARCHAR}, #{segment10Name,jdbcType=VARCHAR},
#{begBal,jdbcType=DECIMAL}, #{periodDr,jdbcType=DECIMAL}, #{periodCr,jdbcType=DECIMAL},
#{endBal,jdbcType=DECIMAL}, #{qtdDr,jdbcType=DECIMAL}, #{qtdCr,jdbcType=DECIMAL},
#{ytdDr,jdbcType=DECIMAL}, #{ytdCr,jdbcType=DECIMAL}, #{begBalBeq,jdbcType=DECIMAL},
#{periodDrBeq,jdbcType=DECIMAL}, #{periodCrBeq,jdbcType=DECIMAL}, #{endBalBeq,jdbcType=DECIMAL},
#{qtdDrBeq,jdbcType=DECIMAL}, #{qtdCrBeq,jdbcType=DECIMAL}, #{ytdDrBeq,jdbcType=DECIMAL},
#{ytdCrBeq,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.vat.entity.TrialBalance">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
insert into trial_balance_final
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="organizationId != null">
organization_id,
</if>
<if test="projectId != null">
project_id,
</if>
<if test="date != null">
`date`,
</if>
<if test="source != null">
`source`,
</if>
<if test="period != null">
period,
</if>
<if test="ledgerId != null">
ledger_id,
</if>
<if test="ledgerName != null">
ledger_name,
</if>
<if test="currencyCode != null">
currency_code,
</if>
<if test="status != null">
`status`,
</if>
<if test="category != null">
category,
</if>
<if test="accountCategory != null">
account_category,
</if>
<if test="acctCode1 != null">
acct_code1,
</if>
<if test="acctName1 != null">
acct_name1,
</if>
<if test="acctName2 != null">
acct_name2,
</if>
<if test="acctName3 != null">
acct_name3,
</if>
<if test="segment1 != null">
segment1,
</if>
<if test="segment2 != null">
segment2,
</if>
<if test="segment3 != null">
segment3,
</if>
<if test="segment4 != null">
segment4,
</if>
<if test="segment5 != null">
segment5,
</if>
<if test="segment6 != null">
segment6,
</if>
<if test="segment7 != null">
segment7,
</if>
<if test="segment8 != null">
segment8,
</if>
<if test="segment9 != null">
segment9,
</if>
<if test="segment10 != null">
segment10,
</if>
<if test="segment1Name != null">
segment1_name,
</if>
<if test="segment2Name != null">
segment2_name,
</if>
<if test="segment3Name != null">
segment3_name,
</if>
<if test="segment4Name != null">
segment4_name,
</if>
<if test="segment5Name != null">
segment5_name,
</if>
<if test="segment6Name != null">
segment6_name,
</if>
<if test="segment7Name != null">
segment7_name,
</if>
<if test="segment8Name != null">
segment8_name,
</if>
<if test="segment9Name != null">
segment9_name,
</if>
<if test="segment10Name != null">
segment10_name,
</if>
<if test="begBal != null">
beg_bal,
</if>
<if test="periodDr != null">
period_dr,
</if>
<if test="periodCr != null">
period_cr,
</if>
<if test="endBal != null">
end_bal,
</if>
<if test="qtdDr != null">
qtd_dr,
</if>
<if test="qtdCr != null">
qtd_cr,
</if>
<if test="ytdDr != null">
ytd_dr,
</if>
<if test="ytdCr != null">
ytd_cr,
</if>
<if test="begBalBeq != null">
beg_bal_beq,
</if>
<if test="periodDrBeq != null">
period_dr_beq,
</if>
<if test="periodCrBeq != null">
period_cr_beq,
</if>
<if test="endBalBeq != null">
end_bal_beq,
</if>
<if test="qtdDrBeq != null">
qtd_dr_beq,
</if>
<if test="qtdCrBeq != null">
qtd_cr_beq,
</if>
<if test="ytdDrBeq != null">
ytd_dr_beq,
</if>
<if test="ytdCrBeq != null">
ytd_cr_beq,
</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=BIGINT},
</if>
<if test="organizationId != null">
#{organizationId,jdbcType=VARCHAR},
</if>
<if test="projectId != null">
#{projectId,jdbcType=VARCHAR},
</if>
<if test="date != null">
#{date,jdbcType=TIMESTAMP},
</if>
<if test="source != null">
#{source,jdbcType=VARCHAR},
</if>
<if test="period != null">
#{period,jdbcType=INTEGER},
</if>
<if test="ledgerId != null">
#{ledgerId,jdbcType=VARCHAR},
</if>
<if test="ledgerName != null">
#{ledgerName,jdbcType=VARCHAR},
</if>
<if test="currencyCode != null">
#{currencyCode,jdbcType=VARCHAR},
</if>
<if test="status != null">
#{status,jdbcType=VARCHAR},
</if>
<if test="category != null">
#{category,jdbcType=VARCHAR},
</if>
<if test="accountCategory != null">
#{accountCategory,jdbcType=VARCHAR},
</if>
<if test="acctCode1 != null">
#{acctCode1,jdbcType=VARCHAR},
</if>
<if test="acctName1 != null">
#{acctName1,jdbcType=VARCHAR},
</if>
<if test="acctName2 != null">
#{acctName2,jdbcType=VARCHAR},
</if>
<if test="acctName3 != null">
#{acctName3,jdbcType=VARCHAR},
</if>
<if test="segment1 != null">
#{segment1,jdbcType=VARCHAR},
</if>
<if test="segment2 != null">
#{segment2,jdbcType=VARCHAR},
</if>
<if test="segment3 != null">
#{segment3,jdbcType=VARCHAR},
</if>
<if test="segment4 != null">
#{segment4,jdbcType=VARCHAR},
</if>
<if test="segment5 != null">
#{segment5,jdbcType=VARCHAR},
</if>
<if test="segment6 != null">
#{segment6,jdbcType=VARCHAR},
</if>
<if test="segment7 != null">
#{segment7,jdbcType=VARCHAR},
</if>
<if test="segment8 != null">
#{segment8,jdbcType=VARCHAR},
</if>
<if test="segment9 != null">
#{segment9,jdbcType=VARCHAR},
</if>
<if test="segment10 != null">
#{segment10,jdbcType=VARCHAR},
</if>
<if test="segment1Name != null">
#{segment1Name,jdbcType=VARCHAR},
</if>
<if test="segment2Name != null">
#{segment2Name,jdbcType=VARCHAR},
</if>
<if test="segment3Name != null">
#{segment3Name,jdbcType=VARCHAR},
</if>
<if test="segment4Name != null">
#{segment4Name,jdbcType=VARCHAR},
</if>
<if test="segment5Name != null">
#{segment5Name,jdbcType=VARCHAR},
</if>
<if test="segment6Name != null">
#{segment6Name,jdbcType=VARCHAR},
</if>
<if test="segment7Name != null">
#{segment7Name,jdbcType=VARCHAR},
</if>
<if test="segment8Name != null">
#{segment8Name,jdbcType=VARCHAR},
</if>
<if test="segment9Name != null">
#{segment9Name,jdbcType=VARCHAR},
</if>
<if test="segment10Name != null">
#{segment10Name,jdbcType=VARCHAR},
</if>
<if test="begBal != null">
#{begBal,jdbcType=DECIMAL},
</if>
<if test="periodDr != null">
#{periodDr,jdbcType=DECIMAL},
</if>
<if test="periodCr != null">
#{periodCr,jdbcType=DECIMAL},
</if>
<if test="endBal != null">
#{endBal,jdbcType=DECIMAL},
</if>
<if test="qtdDr != null">
#{qtdDr,jdbcType=DECIMAL},
</if>
<if test="qtdCr != null">
#{qtdCr,jdbcType=DECIMAL},
</if>
<if test="ytdDr != null">
#{ytdDr,jdbcType=DECIMAL},
</if>
<if test="ytdCr != null">
#{ytdCr,jdbcType=DECIMAL},
</if>
<if test="begBalBeq != null">
#{begBalBeq,jdbcType=DECIMAL},
</if>
<if test="periodDrBeq != null">
#{periodDrBeq,jdbcType=DECIMAL},
</if>
<if test="periodCrBeq != null">
#{periodCrBeq,jdbcType=DECIMAL},
</if>
<if test="endBalBeq != null">
#{endBalBeq,jdbcType=DECIMAL},
</if>
<if test="qtdDrBeq != null">
#{qtdDrBeq,jdbcType=DECIMAL},
</if>
<if test="qtdCrBeq != null">
#{qtdCrBeq,jdbcType=DECIMAL},
</if>
<if test="ytdDrBeq != null">
#{ytdDrBeq,jdbcType=DECIMAL},
</if>
<if test="ytdCrBeq != null">
#{ytdCrBeq,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.TrialBalanceExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
select count(*) from trial_balance_final
<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 trial_balance_final
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.organizationId != null">
organization_id = #{record.organizationId,jdbcType=VARCHAR},
</if>
<if test="record.projectId != null">
project_id = #{record.projectId,jdbcType=VARCHAR},
</if>
<if test="record.date != null">
`date` = #{record.date,jdbcType=TIMESTAMP},
</if>
<if test="record.source != null">
`source` = #{record.source,jdbcType=VARCHAR},
</if>
<if test="record.period != null">
period = #{record.period,jdbcType=INTEGER},
</if>
<if test="record.ledgerId != null">
ledger_id = #{record.ledgerId,jdbcType=VARCHAR},
</if>
<if test="record.ledgerName != null">
ledger_name = #{record.ledgerName,jdbcType=VARCHAR},
</if>
<if test="record.currencyCode != null">
currency_code = #{record.currencyCode,jdbcType=VARCHAR},
</if>
<if test="record.status != null">
`status` = #{record.status,jdbcType=VARCHAR},
</if>
<if test="record.category != null">
category = #{record.category,jdbcType=VARCHAR},
</if>
<if test="record.accountCategory != null">
account_category = #{record.accountCategory,jdbcType=VARCHAR},
</if>
<if test="record.acctCode1 != null">
acct_code1 = #{record.acctCode1,jdbcType=VARCHAR},
</if>
<if test="record.acctName1 != null">
acct_name1 = #{record.acctName1,jdbcType=VARCHAR},
</if>
<if test="record.acctName2 != null">
acct_name2 = #{record.acctName2,jdbcType=VARCHAR},
</if>
<if test="record.acctName3 != null">
acct_name3 = #{record.acctName3,jdbcType=VARCHAR},
</if>
<if test="record.segment1 != null">
segment1 = #{record.segment1,jdbcType=VARCHAR},
</if>
<if test="record.segment2 != null">
segment2 = #{record.segment2,jdbcType=VARCHAR},
</if>
<if test="record.segment3 != null">
segment3 = #{record.segment3,jdbcType=VARCHAR},
</if>
<if test="record.segment4 != null">
segment4 = #{record.segment4,jdbcType=VARCHAR},
</if>
<if test="record.segment5 != null">
segment5 = #{record.segment5,jdbcType=VARCHAR},
</if>
<if test="record.segment6 != null">
segment6 = #{record.segment6,jdbcType=VARCHAR},
</if>
<if test="record.segment7 != null">
segment7 = #{record.segment7,jdbcType=VARCHAR},
</if>
<if test="record.segment8 != null">
segment8 = #{record.segment8,jdbcType=VARCHAR},
</if>
<if test="record.segment9 != null">
segment9 = #{record.segment9,jdbcType=VARCHAR},
</if>
<if test="record.segment10 != null">
segment10 = #{record.segment10,jdbcType=VARCHAR},
</if>
<if test="record.segment1Name != null">
segment1_name = #{record.segment1Name,jdbcType=VARCHAR},
</if>
<if test="record.segment2Name != null">
segment2_name = #{record.segment2Name,jdbcType=VARCHAR},
</if>
<if test="record.segment3Name != null">
segment3_name = #{record.segment3Name,jdbcType=VARCHAR},
</if>
<if test="record.segment4Name != null">
segment4_name = #{record.segment4Name,jdbcType=VARCHAR},
</if>
<if test="record.segment5Name != null">
segment5_name = #{record.segment5Name,jdbcType=VARCHAR},
</if>
<if test="record.segment6Name != null">
segment6_name = #{record.segment6Name,jdbcType=VARCHAR},
</if>
<if test="record.segment7Name != null">
segment7_name = #{record.segment7Name,jdbcType=VARCHAR},
</if>
<if test="record.segment8Name != null">
segment8_name = #{record.segment8Name,jdbcType=VARCHAR},
</if>
<if test="record.segment9Name != null">
segment9_name = #{record.segment9Name,jdbcType=VARCHAR},
</if>
<if test="record.segment10Name != null">
segment10_name = #{record.segment10Name,jdbcType=VARCHAR},
</if>
<if test="record.begBal != null">
beg_bal = #{record.begBal,jdbcType=DECIMAL},
</if>
<if test="record.periodDr != null">
period_dr = #{record.periodDr,jdbcType=DECIMAL},
</if>
<if test="record.periodCr != null">
period_cr = #{record.periodCr,jdbcType=DECIMAL},
</if>
<if test="record.endBal != null">
end_bal = #{record.endBal,jdbcType=DECIMAL},
</if>
<if test="record.qtdDr != null">
qtd_dr = #{record.qtdDr,jdbcType=DECIMAL},
</if>
<if test="record.qtdCr != null">
qtd_cr = #{record.qtdCr,jdbcType=DECIMAL},
</if>
<if test="record.ytdDr != null">
ytd_dr = #{record.ytdDr,jdbcType=DECIMAL},
</if>
<if test="record.ytdCr != null">
ytd_cr = #{record.ytdCr,jdbcType=DECIMAL},
</if>
<if test="record.begBalBeq != null">
beg_bal_beq = #{record.begBalBeq,jdbcType=DECIMAL},
</if>
<if test="record.periodDrBeq != null">
period_dr_beq = #{record.periodDrBeq,jdbcType=DECIMAL},
</if>
<if test="record.periodCrBeq != null">
period_cr_beq = #{record.periodCrBeq,jdbcType=DECIMAL},
</if>
<if test="record.endBalBeq != null">
end_bal_beq = #{record.endBalBeq,jdbcType=DECIMAL},
</if>
<if test="record.qtdDrBeq != null">
qtd_dr_beq = #{record.qtdDrBeq,jdbcType=DECIMAL},
</if>
<if test="record.qtdCrBeq != null">
qtd_cr_beq = #{record.qtdCrBeq,jdbcType=DECIMAL},
</if>
<if test="record.ytdDrBeq != null">
ytd_dr_beq = #{record.ytdDrBeq,jdbcType=DECIMAL},
</if>
<if test="record.ytdCrBeq != null">
ytd_cr_beq = #{record.ytdCrBeq,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 trial_balance_final
set id = #{record.id,jdbcType=BIGINT},
organization_id = #{record.organizationId,jdbcType=VARCHAR},
project_id = #{record.projectId,jdbcType=VARCHAR},
`date` = #{record.date,jdbcType=TIMESTAMP},
`source` = #{record.source,jdbcType=VARCHAR},
period = #{record.period,jdbcType=INTEGER},
ledger_id = #{record.ledgerId,jdbcType=VARCHAR},
ledger_name = #{record.ledgerName,jdbcType=VARCHAR},
currency_code = #{record.currencyCode,jdbcType=VARCHAR},
`status` = #{record.status,jdbcType=VARCHAR},
category = #{record.category,jdbcType=VARCHAR},
account_category = #{record.accountCategory,jdbcType=VARCHAR},
acct_code1 = #{record.acctCode1,jdbcType=VARCHAR},
acct_name1 = #{record.acctName1,jdbcType=VARCHAR},
acct_name2 = #{record.acctName2,jdbcType=VARCHAR},
acct_name3 = #{record.acctName3,jdbcType=VARCHAR},
segment1 = #{record.segment1,jdbcType=VARCHAR},
segment2 = #{record.segment2,jdbcType=VARCHAR},
segment3 = #{record.segment3,jdbcType=VARCHAR},
segment4 = #{record.segment4,jdbcType=VARCHAR},
segment5 = #{record.segment5,jdbcType=VARCHAR},
segment6 = #{record.segment6,jdbcType=VARCHAR},
segment7 = #{record.segment7,jdbcType=VARCHAR},
segment8 = #{record.segment8,jdbcType=VARCHAR},
segment9 = #{record.segment9,jdbcType=VARCHAR},
segment10 = #{record.segment10,jdbcType=VARCHAR},
segment1_name = #{record.segment1Name,jdbcType=VARCHAR},
segment2_name = #{record.segment2Name,jdbcType=VARCHAR},
segment3_name = #{record.segment3Name,jdbcType=VARCHAR},
segment4_name = #{record.segment4Name,jdbcType=VARCHAR},
segment5_name = #{record.segment5Name,jdbcType=VARCHAR},
segment6_name = #{record.segment6Name,jdbcType=VARCHAR},
segment7_name = #{record.segment7Name,jdbcType=VARCHAR},
segment8_name = #{record.segment8Name,jdbcType=VARCHAR},
segment9_name = #{record.segment9Name,jdbcType=VARCHAR},
segment10_name = #{record.segment10Name,jdbcType=VARCHAR},
beg_bal = #{record.begBal,jdbcType=DECIMAL},
period_dr = #{record.periodDr,jdbcType=DECIMAL},
period_cr = #{record.periodCr,jdbcType=DECIMAL},
end_bal = #{record.endBal,jdbcType=DECIMAL},
qtd_dr = #{record.qtdDr,jdbcType=DECIMAL},
qtd_cr = #{record.qtdCr,jdbcType=DECIMAL},
ytd_dr = #{record.ytdDr,jdbcType=DECIMAL},
ytd_cr = #{record.ytdCr,jdbcType=DECIMAL},
beg_bal_beq = #{record.begBalBeq,jdbcType=DECIMAL},
period_dr_beq = #{record.periodDrBeq,jdbcType=DECIMAL},
period_cr_beq = #{record.periodCrBeq,jdbcType=DECIMAL},
end_bal_beq = #{record.endBalBeq,jdbcType=DECIMAL},
qtd_dr_beq = #{record.qtdDrBeq,jdbcType=DECIMAL},
qtd_cr_beq = #{record.qtdCrBeq,jdbcType=DECIMAL},
ytd_dr_beq = #{record.ytdDrBeq,jdbcType=DECIMAL},
ytd_cr_beq = #{record.ytdCrBeq,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.TrialBalance">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update trial_balance_final
<set>
<if test="organizationId != null">
organization_id = #{organizationId,jdbcType=VARCHAR},
</if>
<if test="projectId != null">
project_id = #{projectId,jdbcType=VARCHAR},
</if>
<if test="date != null">
`date` = #{date,jdbcType=TIMESTAMP},
</if>
<if test="source != null">
`source` = #{source,jdbcType=VARCHAR},
</if>
<if test="period != null">
period = #{period,jdbcType=INTEGER},
</if>
<if test="ledgerId != null">
ledger_id = #{ledgerId,jdbcType=VARCHAR},
</if>
<if test="ledgerName != null">
ledger_name = #{ledgerName,jdbcType=VARCHAR},
</if>
<if test="currencyCode != null">
currency_code = #{currencyCode,jdbcType=VARCHAR},
</if>
<if test="status != null">
`status` = #{status,jdbcType=VARCHAR},
</if>
<if test="category != null">
category = #{category,jdbcType=VARCHAR},
</if>
<if test="accountCategory != null">
account_category = #{accountCategory,jdbcType=VARCHAR},
</if>
<if test="acctCode1 != null">
acct_code1 = #{acctCode1,jdbcType=VARCHAR},
</if>
<if test="acctName1 != null">
acct_name1 = #{acctName1,jdbcType=VARCHAR},
</if>
<if test="acctName2 != null">
acct_name2 = #{acctName2,jdbcType=VARCHAR},
</if>
<if test="acctName3 != null">
acct_name3 = #{acctName3,jdbcType=VARCHAR},
</if>
<if test="segment1 != null">
segment1 = #{segment1,jdbcType=VARCHAR},
</if>
<if test="segment2 != null">
segment2 = #{segment2,jdbcType=VARCHAR},
</if>
<if test="segment3 != null">
segment3 = #{segment3,jdbcType=VARCHAR},
</if>
<if test="segment4 != null">
segment4 = #{segment4,jdbcType=VARCHAR},
</if>
<if test="segment5 != null">
segment5 = #{segment5,jdbcType=VARCHAR},
</if>
<if test="segment6 != null">
segment6 = #{segment6,jdbcType=VARCHAR},
</if>
<if test="segment7 != null">
segment7 = #{segment7,jdbcType=VARCHAR},
</if>
<if test="segment8 != null">
segment8 = #{segment8,jdbcType=VARCHAR},
</if>
<if test="segment9 != null">
segment9 = #{segment9,jdbcType=VARCHAR},
</if>
<if test="segment10 != null">
segment10 = #{segment10,jdbcType=VARCHAR},
</if>
<if test="segment1Name != null">
segment1_name = #{segment1Name,jdbcType=VARCHAR},
</if>
<if test="segment2Name != null">
segment2_name = #{segment2Name,jdbcType=VARCHAR},
</if>
<if test="segment3Name != null">
segment3_name = #{segment3Name,jdbcType=VARCHAR},
</if>
<if test="segment4Name != null">
segment4_name = #{segment4Name,jdbcType=VARCHAR},
</if>
<if test="segment5Name != null">
segment5_name = #{segment5Name,jdbcType=VARCHAR},
</if>
<if test="segment6Name != null">
segment6_name = #{segment6Name,jdbcType=VARCHAR},
</if>
<if test="segment7Name != null">
segment7_name = #{segment7Name,jdbcType=VARCHAR},
</if>
<if test="segment8Name != null">
segment8_name = #{segment8Name,jdbcType=VARCHAR},
</if>
<if test="segment9Name != null">
segment9_name = #{segment9Name,jdbcType=VARCHAR},
</if>
<if test="segment10Name != null">
segment10_name = #{segment10Name,jdbcType=VARCHAR},
</if>
<if test="begBal != null">
beg_bal = #{begBal,jdbcType=DECIMAL},
</if>
<if test="periodDr != null">
period_dr = #{periodDr,jdbcType=DECIMAL},
</if>
<if test="periodCr != null">
period_cr = #{periodCr,jdbcType=DECIMAL},
</if>
<if test="endBal != null">
end_bal = #{endBal,jdbcType=DECIMAL},
</if>
<if test="qtdDr != null">
qtd_dr = #{qtdDr,jdbcType=DECIMAL},
</if>
<if test="qtdCr != null">
qtd_cr = #{qtdCr,jdbcType=DECIMAL},
</if>
<if test="ytdDr != null">
ytd_dr = #{ytdDr,jdbcType=DECIMAL},
</if>
<if test="ytdCr != null">
ytd_cr = #{ytdCr,jdbcType=DECIMAL},
</if>
<if test="begBalBeq != null">
beg_bal_beq = #{begBalBeq,jdbcType=DECIMAL},
</if>
<if test="periodDrBeq != null">
period_dr_beq = #{periodDrBeq,jdbcType=DECIMAL},
</if>
<if test="periodCrBeq != null">
period_cr_beq = #{periodCrBeq,jdbcType=DECIMAL},
</if>
<if test="endBalBeq != null">
end_bal_beq = #{endBalBeq,jdbcType=DECIMAL},
</if>
<if test="qtdDrBeq != null">
qtd_dr_beq = #{qtdDrBeq,jdbcType=DECIMAL},
</if>
<if test="qtdCrBeq != null">
qtd_cr_beq = #{qtdCrBeq,jdbcType=DECIMAL},
</if>
<if test="ytdDrBeq != null">
ytd_dr_beq = #{ytdDrBeq,jdbcType=DECIMAL},
</if>
<if test="ytdCrBeq != null">
ytd_cr_beq = #{ytdCrBeq,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=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.vat.entity.TrialBalance">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
update trial_balance_final
set organization_id = #{organizationId,jdbcType=VARCHAR},
project_id = #{projectId,jdbcType=VARCHAR},
`date` = #{date,jdbcType=TIMESTAMP},
`source` = #{source,jdbcType=VARCHAR},
period = #{period,jdbcType=INTEGER},
ledger_id = #{ledgerId,jdbcType=VARCHAR},
ledger_name = #{ledgerName,jdbcType=VARCHAR},
currency_code = #{currencyCode,jdbcType=VARCHAR},
`status` = #{status,jdbcType=VARCHAR},
category = #{category,jdbcType=VARCHAR},
account_category = #{accountCategory,jdbcType=VARCHAR},
acct_code1 = #{acctCode1,jdbcType=VARCHAR},
acct_name1 = #{acctName1,jdbcType=VARCHAR},
acct_name2 = #{acctName2,jdbcType=VARCHAR},
acct_name3 = #{acctName3,jdbcType=VARCHAR},
segment1 = #{segment1,jdbcType=VARCHAR},
segment2 = #{segment2,jdbcType=VARCHAR},
segment3 = #{segment3,jdbcType=VARCHAR},
segment4 = #{segment4,jdbcType=VARCHAR},
segment5 = #{segment5,jdbcType=VARCHAR},
segment6 = #{segment6,jdbcType=VARCHAR},
segment7 = #{segment7,jdbcType=VARCHAR},
segment8 = #{segment8,jdbcType=VARCHAR},
segment9 = #{segment9,jdbcType=VARCHAR},
segment10 = #{segment10,jdbcType=VARCHAR},
segment1_name = #{segment1Name,jdbcType=VARCHAR},
segment2_name = #{segment2Name,jdbcType=VARCHAR},
segment3_name = #{segment3Name,jdbcType=VARCHAR},
segment4_name = #{segment4Name,jdbcType=VARCHAR},
segment5_name = #{segment5Name,jdbcType=VARCHAR},
segment6_name = #{segment6Name,jdbcType=VARCHAR},
segment7_name = #{segment7Name,jdbcType=VARCHAR},
segment8_name = #{segment8Name,jdbcType=VARCHAR},
segment9_name = #{segment9Name,jdbcType=VARCHAR},
segment10_name = #{segment10Name,jdbcType=VARCHAR},
beg_bal = #{begBal,jdbcType=DECIMAL},
period_dr = #{periodDr,jdbcType=DECIMAL},
period_cr = #{periodCr,jdbcType=DECIMAL},
end_bal = #{endBal,jdbcType=DECIMAL},
qtd_dr = #{qtdDr,jdbcType=DECIMAL},
qtd_cr = #{qtdCr,jdbcType=DECIMAL},
ytd_dr = #{ytdDr,jdbcType=DECIMAL},
ytd_cr = #{ytdCr,jdbcType=DECIMAL},
beg_bal_beq = #{begBalBeq,jdbcType=DECIMAL},
period_dr_beq = #{periodDrBeq,jdbcType=DECIMAL},
period_cr_beq = #{periodCrBeq,jdbcType=DECIMAL},
end_bal_beq = #{endBalBeq,jdbcType=DECIMAL},
qtd_dr_beq = #{qtdDrBeq,jdbcType=DECIMAL},
qtd_cr_beq = #{qtdCrBeq,jdbcType=DECIMAL},
ytd_dr_beq = #{ytdDrBeq,jdbcType=DECIMAL},
ytd_cr_beq = #{ytdCrBeq,jdbcType=DECIMAL},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}
</update>
<select id="selectByExampleWithRowbounds" parameterType="pwc.taxtech.atms.vat.entity.TrialBalanceExample" 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 trial_balance_final
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment