Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
T
traffic-front
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxiaoming
traffic-front
Commits
68b52fb5
Commit
68b52fb5
authored
Mar 19, 2019
by
Ken you
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add cashFlowFinal taskId column---Ken
parent
be76c9ea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
559 additions
and
542 deletions
+559
-542
CashFlowFinalMapper.xml
...esources/pwc/taxtech/atms/vat/dao/CashFlowFinalMapper.xml
+559
-542
No files found.
atms-dao/src/main/resources/pwc/taxtech/atms/vat/dao/CashFlowFinalMapper.xml
View file @
68b52fb5
<?xml version="1.0" encoding="UTF-8"?>
<?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">
<!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.CashFlowFinalMapper"
>
<mapper
namespace=
"pwc.taxtech.atms.vat.dao.CashFlowFinalMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"pwc.taxtech.atms.vat.entity.CashFlow"
>
<resultMap
id=
"BaseResultMap"
type=
"pwc.taxtech.atms.vat.entity.CashFlow"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
-->
-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<result
column=
"organization_id"
jdbcType=
"VARCHAR"
property=
"organizationId"
/>
<result
column=
"organization_id"
jdbcType=
"VARCHAR"
property=
"organizationId"
/>
<result
column=
"project_id"
jdbcType=
"VARCHAR"
property=
"projectId"
/>
<result
column=
"project_id"
jdbcType=
"VARCHAR"
property=
"projectId"
/>
<result
column=
"date"
jdbcType=
"TIMESTAMP"
property=
"date"
/>
<result
column=
"date"
jdbcType=
"TIMESTAMP"
property=
"date"
/>
<result
column=
"source"
jdbcType=
"VARCHAR"
property=
"source"
/>
<result
column=
"source"
jdbcType=
"VARCHAR"
property=
"source"
/>
<result
column=
"tms_period"
jdbcType=
"INTEGER"
property=
"tmsPeriod"
/>
<result
column=
"tms_period"
jdbcType=
"INTEGER"
property=
"tmsPeriod"
/>
<result
column=
"period"
jdbcType=
"INTEGER"
property=
"period"
/>
<result
column=
"period"
jdbcType=
"INTEGER"
property=
"period"
/>
<result
column=
"status"
jdbcType=
"VARCHAR"
property=
"status"
/>
<result
column=
"status"
jdbcType=
"VARCHAR"
property=
"status"
/>
<result
column=
"ledger_id"
jdbcType=
"VARCHAR"
property=
"ledgerId"
/>
<result
column=
"ledger_id"
jdbcType=
"VARCHAR"
property=
"ledgerId"
/>
<result
column=
"ledger_name"
jdbcType=
"VARCHAR"
property=
"ledgerName"
/>
<result
column=
"ledger_name"
jdbcType=
"VARCHAR"
property=
"ledgerName"
/>
<result
column=
"ledger_currency_code"
jdbcType=
"VARCHAR"
property=
"ledgerCurrencyCode"
/>
<result
column=
"ledger_currency_code"
jdbcType=
"VARCHAR"
property=
"ledgerCurrencyCode"
/>
<result
column=
"entity_code"
jdbcType=
"VARCHAR"
property=
"entityCode"
/>
<result
column=
"entity_code"
jdbcType=
"VARCHAR"
property=
"entityCode"
/>
<result
column=
"entity_name"
jdbcType=
"VARCHAR"
property=
"entityName"
/>
<result
column=
"entity_name"
jdbcType=
"VARCHAR"
property=
"entityName"
/>
<result
column=
"category"
jdbcType=
"VARCHAR"
property=
"category"
/>
<result
column=
"category"
jdbcType=
"VARCHAR"
property=
"category"
/>
<result
column=
"frequency"
jdbcType=
"VARCHAR"
property=
"frequency"
/>
<result
column=
"frequency"
jdbcType=
"VARCHAR"
property=
"frequency"
/>
<result
column=
"item_name"
jdbcType=
"VARCHAR"
property=
"itemName"
/>
<result
column=
"item_name"
jdbcType=
"VARCHAR"
property=
"itemName"
/>
<result
column=
"item_name2"
jdbcType=
"VARCHAR"
property=
"itemName2"
/>
<result
column=
"item_name2"
jdbcType=
"VARCHAR"
property=
"itemName2"
/>
<result
column=
"period_amt"
jdbcType=
"DECIMAL"
property=
"periodAmt"
/>
<result
column=
"period_amt"
jdbcType=
"DECIMAL"
property=
"periodAmt"
/>
<result
column=
"ytd_amt"
jdbcType=
"DECIMAL"
property=
"ytdAmt"
/>
<result
column=
"ytd_amt"
jdbcType=
"DECIMAL"
property=
"ytdAmt"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
</resultMap>
<result
column=
"task_id"
jdbcType=
"VARCHAR"
property=
"taskId"
/>
<sql
id=
"Example_Where_Clause"
>
</resultMap>
<!--
<sql
id=
"Example_Where_Clause"
>
WARNING - @mbg.generated
<!--
This element is automatically generated by MyBatis Generator, do not modify.
WARNING - @mbg.generated
-->
This element is automatically generated by MyBatis Generator, do not modify.
<where>
-->
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<where>
<if
test=
"criteria.valid"
>
<foreach
collection=
"oredCriteria"
item=
"criteria"
separator=
"or"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<if
test=
"criteria.valid"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<choose>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<when
test=
"criterion.noValue"
>
<choose>
and ${criterion.condition}
<when
test=
"criterion.noValue"
>
</when>
and ${criterion.condition}
<when
test=
"criterion.singleValue"
>
</when>
and ${criterion.condition} #{criterion.value}
<when
test=
"criterion.singleValue"
>
</when>
and ${criterion.condition} #{criterion.value}
<when
test=
"criterion.betweenValue"
>
</when>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
<when
test=
"criterion.betweenValue"
>
</when>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
<when
test=
"criterion.listValue"
>
</when>
and ${criterion.condition}
<when
test=
"criterion.listValue"
>
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
and ${criterion.condition}
#{listItem}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
</foreach>
#{listItem}
</when>
</foreach>
</choose>
</when>
</foreach>
</choose>
</trim>
</foreach>
</if>
</trim>
</foreach>
</if>
</where>
</foreach>
</sql>
</where>
<sql
id=
"Update_By_Example_Where_Clause"
>
</sql>
<!--
<sql
id=
"Update_By_Example_Where_Clause"
>
WARNING - @mbg.generated
<!--
This element is automatically generated by MyBatis Generator, do not modify.
WARNING - @mbg.generated
-->
This element is automatically generated by MyBatis Generator, do not modify.
<where>
-->
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<where>
<if
test=
"criteria.valid"
>
<foreach
collection=
"example.oredCriteria"
item=
"criteria"
separator=
"or"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<if
test=
"criteria.valid"
>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<trim
prefix=
"("
prefixOverrides=
"and"
suffix=
")"
>
<choose>
<foreach
collection=
"criteria.criteria"
item=
"criterion"
>
<when
test=
"criterion.noValue"
>
<choose>
and ${criterion.condition}
<when
test=
"criterion.noValue"
>
</when>
and ${criterion.condition}
<when
test=
"criterion.singleValue"
>
</when>
and ${criterion.condition} #{criterion.value}
<when
test=
"criterion.singleValue"
>
</when>
and ${criterion.condition} #{criterion.value}
<when
test=
"criterion.betweenValue"
>
</when>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
<when
test=
"criterion.betweenValue"
>
</when>
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
<when
test=
"criterion.listValue"
>
</when>
and ${criterion.condition}
<when
test=
"criterion.listValue"
>
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
and ${criterion.condition}
#{listItem}
<foreach
close=
")"
collection=
"criterion.value"
item=
"listItem"
open=
"("
separator=
","
>
</foreach>
#{listItem}
</when>
</foreach>
</choose>
</when>
</foreach>
</choose>
</trim>
</foreach>
</if>
</trim>
</foreach>
</if>
</where>
</foreach>
</sql>
</where>
<sql
id=
"Base_Column_List"
>
</sql>
<!--
<sql
id=
"Base_Column_List"
>
WARNING - @mbg.generated
<!--
This element is automatically generated by MyBatis Generator, do not modify.
WARNING - @mbg.generated
-->
This element is automatically generated by MyBatis Generator, do not modify.
id, organization_id, project_id, `date`, `source`, tms_period, period, `status`,
-->
ledger_id, ledger_name, ledger_currency_code, entity_code, entity_name, category,
id, organization_id, project_id, `date`, `source`, tms_period, period, `status`,
frequency, item_name, item_name2, period_amt, ytd_amt, create_time, update_time
ledger_id, ledger_name, ledger_currency_code, entity_code, entity_name, category,
</sql>
frequency, item_name, item_name2, period_amt, ytd_amt, create_time, update_time,
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.CashFlowExample"
resultMap=
"BaseResultMap"
>
task_id
<!--
</sql>
WARNING - @mbg.generated
<select
id=
"selectByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.CashFlowExample"
resultMap=
"BaseResultMap"
>
This element is automatically generated by MyBatis Generator, do not modify.
<!--
-->
WARNING - @mbg.generated
select
This element is automatically generated by MyBatis Generator, do not modify.
<if
test=
"distinct"
>
-->
distinct
select
</if>
<if
test=
"distinct"
>
<include
refid=
"Base_Column_List"
/>
distinct
from cash_flow_final
</if>
<if
test=
"_parameter != null"
>
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Example_Where_Clause"
/>
from cash_flow_final
</if>
<if
test=
"_parameter != null"
>
<if
test=
"orderByClause != null"
>
<include
refid=
"Example_Where_Clause"
/>
order by ${orderByClause}
</if>
</if>
<if
test=
"orderByClause != null"
>
</select>
order by ${orderByClause}
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
</if>
<!--
</select>
WARNING - @mbg.generated
<select
id=
"selectByPrimaryKey"
parameterType=
"java.lang.Long"
resultMap=
"BaseResultMap"
>
This element is automatically generated by MyBatis Generator, do not modify.
<!--
-->
WARNING - @mbg.generated
select
This element is automatically generated by MyBatis Generator, do not modify.
<include
refid=
"Base_Column_List"
/>
-->
from cash_flow_final
select
where id = #{id,jdbcType=BIGINT}
<include
refid=
"Base_Column_List"
/>
</select>
from cash_flow_final
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
where id = #{id,jdbcType=BIGINT}
<!--
</select>
WARNING - @mbg.generated
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Long"
>
This element is automatically generated by MyBatis Generator, do not modify.
<!--
-->
WARNING - @mbg.generated
delete from cash_flow_final
This element is automatically generated by MyBatis Generator, do not modify.
where id = #{id,jdbcType=BIGINT}
-->
</delete>
delete from cash_flow_final
<delete
id=
"deleteByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.CashFlowExample"
>
where id = #{id,jdbcType=BIGINT}
<!--
</delete>
WARNING - @mbg.generated
<delete
id=
"deleteByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.CashFlowExample"
>
This element is automatically generated by MyBatis Generator, do not modify.
<!--
-->
WARNING - @mbg.generated
delete from cash_flow_final
This element is automatically generated by MyBatis Generator, do not modify.
<if
test=
"_parameter != null"
>
-->
<include
refid=
"Example_Where_Clause"
/>
delete from cash_flow_final
</if>
<if
test=
"_parameter != null"
>
</delete>
<include
refid=
"Example_Where_Clause"
/>
<insert
id=
"insert"
parameterType=
"pwc.taxtech.atms.vat.entity.CashFlow"
>
</if>
<!--
</delete>
WARNING - @mbg.generated
<insert
id=
"insert"
parameterType=
"pwc.taxtech.atms.vat.entity.CashFlow"
>
This element is automatically generated by MyBatis Generator, do not modify.
<!--
-->
WARNING - @mbg.generated
insert into cash_flow_final (id, organization_id, project_id,
This element is automatically generated by MyBatis Generator, do not modify.
`date`, `source`, tms_period,
-->
period, `status`, ledger_id,
insert into cash_flow_final (id, organization_id, project_id,
ledger_name, ledger_currency_code, entity_code,
`date`, `source`, tms_period,
entity_name, category, frequency,
period, `status`, ledger_id,
item_name, item_name2, period_amt,
ledger_name, ledger_currency_code, entity_code,
ytd_amt, create_time, update_time
entity_name, category, frequency,
)
item_name, item_name2, period_amt,
values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR},
ytd_amt, create_time, update_time,
#{date,jdbcType=TIMESTAMP}, #{source,jdbcType=VARCHAR}, #{tmsPeriod,jdbcType=INTEGER},
task_id)
#{period,jdbcType=INTEGER}, #{status,jdbcType=VARCHAR}, #{ledgerId,jdbcType=VARCHAR},
values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=VARCHAR}, #{projectId,jdbcType=VARCHAR},
#{ledgerName,jdbcType=VARCHAR}, #{ledgerCurrencyCode,jdbcType=VARCHAR}, #{entityCode,jdbcType=VARCHAR},
#{date,jdbcType=TIMESTAMP}, #{source,jdbcType=VARCHAR}, #{tmsPeriod,jdbcType=INTEGER},
#{entityName,jdbcType=VARCHAR}, #{category,jdbcType=VARCHAR}, #{frequency,jdbcType=VARCHAR},
#{period,jdbcType=INTEGER}, #{status,jdbcType=VARCHAR}, #{ledgerId,jdbcType=VARCHAR},
#{itemName,jdbcType=VARCHAR}, #{itemName2,jdbcType=VARCHAR}, #{periodAmt,jdbcType=DECIMAL},
#{ledgerName,jdbcType=VARCHAR}, #{ledgerCurrencyCode,jdbcType=VARCHAR}, #{entityCode,jdbcType=VARCHAR},
#{ytdAmt,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}
#{entityName,jdbcType=VARCHAR}, #{category,jdbcType=VARCHAR}, #{frequency,jdbcType=VARCHAR},
)
#{itemName,jdbcType=VARCHAR}, #{itemName2,jdbcType=VARCHAR}, #{periodAmt,jdbcType=DECIMAL},
</insert>
#{ytdAmt,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.vat.entity.CashFlow"
>
#{taskId,jdbcType=VARCHAR})
<!--
</insert>
WARNING - @mbg.generated
<insert
id=
"insertSelective"
parameterType=
"pwc.taxtech.atms.vat.entity.CashFlow"
>
This element is automatically generated by MyBatis Generator, do not modify.
<!--
-->
WARNING - @mbg.generated
insert into cash_flow_final
This element is automatically generated by MyBatis Generator, do not modify.
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
-->
<if
test=
"id != null"
>
insert into cash_flow_final
id,
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
</if>
<if
test=
"id != null"
>
<if
test=
"organizationId != null"
>
id,
organization_id,
</if>
</if>
<if
test=
"organizationId != null"
>
<if
test=
"projectId != null"
>
organization_id,
project_id,
</if>
</if>
<if
test=
"projectId != null"
>
<if
test=
"date != null"
>
project_id,
`date`,
</if>
</if>
<if
test=
"date != null"
>
<if
test=
"source != null"
>
`date`,
`source`,
</if>
</if>
<if
test=
"source != null"
>
<if
test=
"tmsPeriod != null"
>
`source`,
tms_period,
</if>
</if>
<if
test=
"tmsPeriod != null"
>
<if
test=
"period != null"
>
tms_period,
period,
</if>
</if>
<if
test=
"period != null"
>
<if
test=
"status != null"
>
period,
`status`,
</if>
</if>
<if
test=
"status != null"
>
<if
test=
"ledgerId != null"
>
`status`,
ledger_id,
</if>
</if>
<if
test=
"ledgerId != null"
>
<if
test=
"ledgerName != null"
>
ledger_id,
ledger_name,
</if>
</if>
<if
test=
"ledgerName != null"
>
<if
test=
"ledgerCurrencyCode != null"
>
ledger_name,
ledger_currency_code,
</if>
</if>
<if
test=
"ledgerCurrencyCode != null"
>
<if
test=
"entityCode != null"
>
ledger_currency_code,
entity_code,
</if>
</if>
<if
test=
"entityCode != null"
>
<if
test=
"entityName != null"
>
entity_code,
entity_name,
</if>
</if>
<if
test=
"entityName != null"
>
<if
test=
"category != null"
>
entity_name,
category,
</if>
</if>
<if
test=
"category != null"
>
<if
test=
"frequency != null"
>
category,
frequency,
</if>
</if>
<if
test=
"frequency != null"
>
<if
test=
"itemName != null"
>
frequency,
item_name,
</if>
</if>
<if
test=
"itemName != null"
>
<if
test=
"itemName2 != null"
>
item_name,
item_name2,
</if>
</if>
<if
test=
"itemName2 != null"
>
<if
test=
"periodAmt != null"
>
item_name2,
period_amt,
</if>
</if>
<if
test=
"periodAmt != null"
>
<if
test=
"ytdAmt != null"
>
period_amt,
ytd_amt,
</if>
</if>
<if
test=
"ytdAmt != null"
>
<if
test=
"createTime != null"
>
ytd_amt,
create_time,
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"updateTime != null"
>
create_time,
update_time,
</if>
</if>
<if
test=
"updateTime != null"
>
</trim>
update_time,
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
</if>
<if
test=
"id != null"
>
<if
test=
"taskId != null"
>
#{id,jdbcType=BIGINT},
task_id,
</if>
</if>
<if
test=
"organizationId != null"
>
</trim>
#{organizationId,jdbcType=VARCHAR},
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
</if>
<if
test=
"id != null"
>
<if
test=
"projectId != null"
>
#{id,jdbcType=BIGINT},
#{projectId,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"organizationId != null"
>
<if
test=
"date != null"
>
#{organizationId,jdbcType=VARCHAR},
#{date,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"projectId != null"
>
<if
test=
"source != null"
>
#{projectId,jdbcType=VARCHAR},
#{source,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"date != null"
>
<if
test=
"tmsPeriod != null"
>
#{date,jdbcType=TIMESTAMP},
#{tmsPeriod,jdbcType=INTEGER},
</if>
</if>
<if
test=
"source != null"
>
<if
test=
"period != null"
>
#{source,jdbcType=VARCHAR},
#{period,jdbcType=INTEGER},
</if>
</if>
<if
test=
"tmsPeriod != null"
>
<if
test=
"status != null"
>
#{tmsPeriod,jdbcType=INTEGER},
#{status,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"period != null"
>
<if
test=
"ledgerId != null"
>
#{period,jdbcType=INTEGER},
#{ledgerId,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"status != null"
>
<if
test=
"ledgerName != null"
>
#{status,jdbcType=VARCHAR},
#{ledgerName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"ledgerId != null"
>
<if
test=
"ledgerCurrencyCode != null"
>
#{ledgerId,jdbcType=VARCHAR},
#{ledgerCurrencyCode,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"ledgerName != null"
>
<if
test=
"entityCode != null"
>
#{ledgerName,jdbcType=VARCHAR},
#{entityCode,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"ledgerCurrencyCode != null"
>
<if
test=
"entityName != null"
>
#{ledgerCurrencyCode,jdbcType=VARCHAR},
#{entityName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"entityCode != null"
>
<if
test=
"category != null"
>
#{entityCode,jdbcType=VARCHAR},
#{category,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"entityName != null"
>
<if
test=
"frequency != null"
>
#{entityName,jdbcType=VARCHAR},
#{frequency,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"category != null"
>
<if
test=
"itemName != null"
>
#{category,jdbcType=VARCHAR},
#{itemName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"frequency != null"
>
<if
test=
"itemName2 != null"
>
#{frequency,jdbcType=VARCHAR},
#{itemName2,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"itemName != null"
>
<if
test=
"periodAmt != null"
>
#{itemName,jdbcType=VARCHAR},
#{periodAmt,jdbcType=DECIMAL},
</if>
</if>
<if
test=
"itemName2 != null"
>
<if
test=
"ytdAmt != null"
>
#{itemName2,jdbcType=VARCHAR},
#{ytdAmt,jdbcType=DECIMAL},
</if>
</if>
<if
test=
"periodAmt != null"
>
<if
test=
"createTime != null"
>
#{periodAmt,jdbcType=DECIMAL},
#{createTime,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"ytdAmt != null"
>
<if
test=
"updateTime != null"
>
#{ytdAmt,jdbcType=DECIMAL},
#{updateTime,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"createTime != null"
>
</trim>
#{createTime,jdbcType=TIMESTAMP},
</insert>
</if>
<select
id=
"countByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.CashFlowExample"
resultType=
"java.lang.Long"
>
<if
test=
"updateTime != null"
>
<!--
#{updateTime,jdbcType=TIMESTAMP},
WARNING - @mbg.generated
</if>
This element is automatically generated by MyBatis Generator, do not modify.
<if
test=
"taskId != null"
>
-->
#{taskId,jdbcType=VARCHAR},
select count(*) from cash_flow_final
</if>
<if
test=
"_parameter != null"
>
</trim>
<include
refid=
"Example_Where_Clause"
/>
</insert>
</if>
<select
id=
"countByExample"
parameterType=
"pwc.taxtech.atms.vat.entity.CashFlowExample"
resultType=
"java.lang.Long"
>
</select>
<!--
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
WARNING - @mbg.generated
<!--
This element is automatically generated by MyBatis Generator, do not modify.
WARNING - @mbg.generated
-->
This element is automatically generated by MyBatis Generator, do not modify.
select count(*) from cash_flow_final
-->
<if
test=
"_parameter != null"
>
update cash_flow_final
<include
refid=
"Example_Where_Clause"
/>
<set>
</if>
<if
test=
"record.id != null"
>
</select>
id = #{record.id,jdbcType=BIGINT},
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
</if>
<!--
<if
test=
"record.organizationId != null"
>
WARNING - @mbg.generated
organization_id = #{record.organizationId,jdbcType=VARCHAR},
This element is automatically generated by MyBatis Generator, do not modify.
</if>
-->
<if
test=
"record.projectId != null"
>
update cash_flow_final
project_id = #{record.projectId,jdbcType=VARCHAR},
<set>
</if>
<if
test=
"record.id != null"
>
<if
test=
"record.date != null"
>
id = #{record.id,jdbcType=BIGINT},
`date` = #{record.date,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"record.organizationId != null"
>
<if
test=
"record.source != null"
>
organization_id = #{record.organizationId,jdbcType=VARCHAR},
`source` = #{record.source,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.projectId != null"
>
<if
test=
"record.tmsPeriod != null"
>
project_id = #{record.projectId,jdbcType=VARCHAR},
tms_period = #{record.tmsPeriod,jdbcType=INTEGER},
</if>
</if>
<if
test=
"record.date != null"
>
<if
test=
"record.period != null"
>
`date` = #{record.date,jdbcType=TIMESTAMP},
period = #{record.period,jdbcType=INTEGER},
</if>
</if>
<if
test=
"record.source != null"
>
<if
test=
"record.status != null"
>
`source` = #{record.source,jdbcType=VARCHAR},
`status` = #{record.status,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.tmsPeriod != null"
>
<if
test=
"record.ledgerId != null"
>
tms_period = #{record.tmsPeriod,jdbcType=INTEGER},
ledger_id = #{record.ledgerId,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.period != null"
>
<if
test=
"record.ledgerName != null"
>
period = #{record.period,jdbcType=INTEGER},
ledger_name = #{record.ledgerName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.status != null"
>
<if
test=
"record.ledgerCurrencyCode != null"
>
`status` = #{record.status,jdbcType=VARCHAR},
ledger_currency_code = #{record.ledgerCurrencyCode,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.ledgerId != null"
>
<if
test=
"record.entityCode != null"
>
ledger_id = #{record.ledgerId,jdbcType=VARCHAR},
entity_code = #{record.entityCode,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.ledgerName != null"
>
<if
test=
"record.entityName != null"
>
ledger_name = #{record.ledgerName,jdbcType=VARCHAR},
entity_name = #{record.entityName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.ledgerCurrencyCode != null"
>
<if
test=
"record.category != null"
>
ledger_currency_code = #{record.ledgerCurrencyCode,jdbcType=VARCHAR},
category = #{record.category,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.entityCode != null"
>
<if
test=
"record.frequency != null"
>
entity_code = #{record.entityCode,jdbcType=VARCHAR},
frequency = #{record.frequency,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.entityName != null"
>
<if
test=
"record.itemName != null"
>
entity_name = #{record.entityName,jdbcType=VARCHAR},
item_name = #{record.itemName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.category != null"
>
<if
test=
"record.itemName2 != null"
>
category = #{record.category,jdbcType=VARCHAR},
item_name2 = #{record.itemName2,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"record.frequency != null"
>
<if
test=
"record.periodAmt != null"
>
frequency = #{record.frequency,jdbcType=VARCHAR},
period_amt = #{record.periodAmt,jdbcType=DECIMAL},
</if>
</if>
<if
test=
"record.itemName != null"
>
<if
test=
"record.ytdAmt != null"
>
item_name = #{record.itemName,jdbcType=VARCHAR},
ytd_amt = #{record.ytdAmt,jdbcType=DECIMAL},
</if>
</if>
<if
test=
"record.itemName2 != null"
>
<if
test=
"record.createTime != null"
>
item_name2 = #{record.itemName2,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"record.periodAmt != null"
>
<if
test=
"record.updateTime != null"
>
period_amt = #{record.periodAmt,jdbcType=DECIMAL},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"record.ytdAmt != null"
>
</set>
ytd_amt = #{record.ytdAmt,jdbcType=DECIMAL},
<if
test=
"_parameter != null"
>
</if>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<if
test=
"record.createTime != null"
>
</if>
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</update>
</if>
<update
id=
"updateByExample"
parameterType=
"map"
>
<if
test=
"record.updateTime != null"
>
<!--
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
WARNING - @mbg.generated
</if>
This element is automatically generated by MyBatis Generator, do not modify.
<if
test=
"record.taskId != null"
>
-->
task_id = #{record.taskId,jdbcType=VARCHAR},
update cash_flow_final
</if>
set id = #{record.id,jdbcType=BIGINT},
</set>
organization_id = #{record.organizationId,jdbcType=VARCHAR},
<if
test=
"_parameter != null"
>
project_id = #{record.projectId,jdbcType=VARCHAR},
<include
refid=
"Update_By_Example_Where_Clause"
/>
`date` = #{record.date,jdbcType=TIMESTAMP},
</if>
`source` = #{record.source,jdbcType=VARCHAR},
</update>
tms_period = #{record.tmsPeriod,jdbcType=INTEGER},
<update
id=
"updateByExample"
parameterType=
"map"
>
period = #{record.period,jdbcType=INTEGER},
<!--
`status` = #{record.status,jdbcType=VARCHAR},
WARNING - @mbg.generated
ledger_id = #{record.ledgerId,jdbcType=VARCHAR},
This element is automatically generated by MyBatis Generator, do not modify.
ledger_name = #{record.ledgerName,jdbcType=VARCHAR},
-->
ledger_currency_code = #{record.ledgerCurrencyCode,jdbcType=VARCHAR},
update cash_flow_final
entity_code = #{record.entityCode,jdbcType=VARCHAR},
set id = #{record.id,jdbcType=BIGINT},
entity_name = #{record.entityName,jdbcType=VARCHAR},
organization_id = #{record.organizationId,jdbcType=VARCHAR},
category = #{record.category,jdbcType=VARCHAR},
project_id = #{record.projectId,jdbcType=VARCHAR},
frequency = #{record.frequency,jdbcType=VARCHAR},
`date` = #{record.date,jdbcType=TIMESTAMP},
item_name = #{record.itemName,jdbcType=VARCHAR},
`source` = #{record.source,jdbcType=VARCHAR},
item_name2 = #{record.itemName2,jdbcType=VARCHAR},
tms_period = #{record.tmsPeriod,jdbcType=INTEGER},
period_amt = #{record.periodAmt,jdbcType=DECIMAL},
period = #{record.period,jdbcType=INTEGER},
ytd_amt = #{record.ytdAmt,jdbcType=DECIMAL},
`status` = #{record.status,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
ledger_id = #{record.ledgerId,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}
ledger_name = #{record.ledgerName,jdbcType=VARCHAR},
<if
test=
"_parameter != null"
>
ledger_currency_code = #{record.ledgerCurrencyCode,jdbcType=VARCHAR},
<include
refid=
"Update_By_Example_Where_Clause"
/>
entity_code = #{record.entityCode,jdbcType=VARCHAR},
</if>
entity_name = #{record.entityName,jdbcType=VARCHAR},
</update>
category = #{record.category,jdbcType=VARCHAR},
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"pwc.taxtech.atms.vat.entity.CashFlow"
>
frequency = #{record.frequency,jdbcType=VARCHAR},
<!--
item_name = #{record.itemName,jdbcType=VARCHAR},
WARNING - @mbg.generated
item_name2 = #{record.itemName2,jdbcType=VARCHAR},
This element is automatically generated by MyBatis Generator, do not modify.
period_amt = #{record.periodAmt,jdbcType=DECIMAL},
-->
ytd_amt = #{record.ytdAmt,jdbcType=DECIMAL},
update cash_flow_final
create_time = #{record.createTime,jdbcType=TIMESTAMP},
<set>
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
<if
test=
"organizationId != null"
>
task_id = #{record.taskId,jdbcType=VARCHAR}
organization_id = #{organizationId,jdbcType=VARCHAR},
<if
test=
"_parameter != null"
>
</if>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<if
test=
"projectId != null"
>
</if>
project_id = #{projectId,jdbcType=VARCHAR},
</update>
</if>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"pwc.taxtech.atms.vat.entity.CashFlow"
>
<if
test=
"date != null"
>
<!--
`date` = #{date,jdbcType=TIMESTAMP},
WARNING - @mbg.generated
</if>
This element is automatically generated by MyBatis Generator, do not modify.
<if
test=
"source != null"
>
-->
`source` = #{source,jdbcType=VARCHAR},
update cash_flow_final
</if>
<set>
<if
test=
"tmsPeriod != null"
>
<if
test=
"organizationId != null"
>
tms_period = #{tmsPeriod,jdbcType=INTEGER},
organization_id = #{organizationId,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"period != null"
>
<if
test=
"projectId != null"
>
period = #{period,jdbcType=INTEGER},
project_id = #{projectId,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"status != null"
>
<if
test=
"date != null"
>
`status` = #{status,jdbcType=VARCHAR},
`date` = #{date,jdbcType=TIMESTAMP},
</if>
</if>
<if
test=
"ledgerId != null"
>
<if
test=
"source != null"
>
ledger_id = #{ledgerId,jdbcType=VARCHAR},
`source` = #{source,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"ledgerName != null"
>
<if
test=
"tmsPeriod != null"
>
ledger_name = #{ledgerName,jdbcType=VARCHAR},
tms_period = #{tmsPeriod,jdbcType=INTEGER},
</if>
</if>
<if
test=
"ledgerCurrencyCode != null"
>
<if
test=
"period != null"
>
ledger_currency_code = #{ledgerCurrencyCode,jdbcType=VARCHAR},
period = #{period,jdbcType=INTEGER},
</if>
</if>
<if
test=
"entityCode != null"
>
<if
test=
"status != null"
>
entity_code = #{entityCode,jdbcType=VARCHAR},
`status` = #{status,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"entityName != null"
>
<if
test=
"ledgerId != null"
>
entity_name = #{entityName,jdbcType=VARCHAR},
ledger_id = #{ledgerId,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"category != null"
>
<if
test=
"ledgerName != null"
>
category = #{category,jdbcType=VARCHAR},
ledger_name = #{ledgerName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"frequency != null"
>
<if
test=
"ledgerCurrencyCode != null"
>
frequency = #{frequency,jdbcType=VARCHAR},
ledger_currency_code = #{ledgerCurrencyCode,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"itemName != null"
>
<if
test=
"entityCode != null"
>
item_name = #{itemName,jdbcType=VARCHAR},
entity_code = #{entityCode,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"itemName2 != null"
>
<if
test=
"entityName != null"
>
item_name2 = #{itemName2,jdbcType=VARCHAR},
entity_name = #{entityName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"periodAmt != null"
>
<if
test=
"category != null"
>
period_amt = #{periodAmt,jdbcType=DECIMAL},
category = #{category,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"ytdAmt != null"
>
<if
test=
"frequency != null"
>
ytd_amt = #{ytdAmt,jdbcType=DECIMAL},
frequency = #{frequency,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"createTime != null"
>
<if
test=
"itemName != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
item_name = #{itemName,jdbcType=VARCHAR},
</if>
</if>
<if
test=
"updateTime != null"
>
<if
test=
"itemName2 != null"
>
update_time = #{updateTime,jdbcType=TIMESTAMP},
item_name2 = #{itemName2,jdbcType=VARCHAR},
</if>
</if>
</set>
<if
test=
"periodAmt != null"
>
where id = #{id,jdbcType=BIGINT}
period_amt = #{periodAmt,jdbcType=DECIMAL},
</update>
</if>
<update
id=
"updateByPrimaryKey"
parameterType=
"pwc.taxtech.atms.vat.entity.CashFlow"
>
<if
test=
"ytdAmt != null"
>
<!--
ytd_amt = #{ytdAmt,jdbcType=DECIMAL},
WARNING - @mbg.generated
</if>
This element is automatically generated by MyBatis Generator, do not modify.
<if
test=
"createTime != null"
>
-->
create_time = #{createTime,jdbcType=TIMESTAMP},
update cash_flow_final
</if>
set organization_id = #{organizationId,jdbcType=VARCHAR},
<if
test=
"updateTime != null"
>
project_id = #{projectId,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP},
`date` = #{date,jdbcType=TIMESTAMP},
</if>
`source` = #{source,jdbcType=VARCHAR},
<if
test=
"taskId != null"
>
tms_period = #{tmsPeriod,jdbcType=INTEGER},
task_id = #{taskId,jdbcType=VARCHAR},
period = #{period,jdbcType=INTEGER},
</if>
`status` = #{status,jdbcType=VARCHAR},
</set>
ledger_id = #{ledgerId,jdbcType=VARCHAR},
where id = #{id,jdbcType=BIGINT}
ledger_name = #{ledgerName,jdbcType=VARCHAR},
</update>
ledger_currency_code = #{ledgerCurrencyCode,jdbcType=VARCHAR},
<update
id=
"updateByPrimaryKey"
parameterType=
"pwc.taxtech.atms.vat.entity.CashFlow"
>
entity_code = #{entityCode,jdbcType=VARCHAR},
<!--
entity_name = #{entityName,jdbcType=VARCHAR},
WARNING - @mbg.generated
category = #{category,jdbcType=VARCHAR},
This element is automatically generated by MyBatis Generator, do not modify.
frequency = #{frequency,jdbcType=VARCHAR},
-->
item_name = #{itemName,jdbcType=VARCHAR},
update cash_flow_final
item_name2 = #{itemName2,jdbcType=VARCHAR},
set organization_id = #{organizationId,jdbcType=VARCHAR},
period_amt = #{periodAmt,jdbcType=DECIMAL},
project_id = #{projectId,jdbcType=VARCHAR},
ytd_amt = #{ytdAmt,jdbcType=DECIMAL},
`date` = #{date,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP},
`source` = #{source,jdbcType=VARCHAR},
update_time = #{updateTime,jdbcType=TIMESTAMP}
tms_period = #{tmsPeriod,jdbcType=INTEGER},
where id = #{id,jdbcType=BIGINT}
period = #{period,jdbcType=INTEGER},
</update>
`status` = #{status,jdbcType=VARCHAR},
<select
id=
"selectByExampleWithRowbounds"
parameterType=
"pwc.taxtech.atms.vat.entity.CashFlowExample"
resultMap=
"BaseResultMap"
>
ledger_id = #{ledgerId,jdbcType=VARCHAR},
<!--
ledger_name = #{ledgerName,jdbcType=VARCHAR},
WARNING - @mbg.generated
ledger_currency_code = #{ledgerCurrencyCode,jdbcType=VARCHAR},
This element is automatically generated by MyBatis Generator, do not modify.
entity_code = #{entityCode,jdbcType=VARCHAR},
-->
entity_name = #{entityName,jdbcType=VARCHAR},
select
category = #{category,jdbcType=VARCHAR},
<if
test=
"distinct"
>
frequency = #{frequency,jdbcType=VARCHAR},
distinct
item_name = #{itemName,jdbcType=VARCHAR},
</if>
item_name2 = #{itemName2,jdbcType=VARCHAR},
<include
refid=
"Base_Column_List"
/>
period_amt = #{periodAmt,jdbcType=DECIMAL},
from cash_flow_final
ytd_amt = #{ytdAmt,jdbcType=DECIMAL},
<if
test=
"_parameter != null"
>
create_time = #{createTime,jdbcType=TIMESTAMP},
<include
refid=
"Example_Where_Clause"
/>
update_time = #{updateTime,jdbcType=TIMESTAMP},
</if>
task_id = #{taskId,jdbcType=VARCHAR}
<if
test=
"orderByClause != null"
>
where id = #{id,jdbcType=BIGINT}
order by ${orderByClause}
</update>
</if>
<select
id=
"selectByExampleWithRowbounds"
parameterType=
"pwc.taxtech.atms.vat.entity.CashFlowExample"
resultMap=
"BaseResultMap"
>
</select>
<!--
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 cash_flow_final
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
</if>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
</if>
</select>
</mapper>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment