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
fd6d1a79
Commit
fd6d1a79
authored
Mar 19, 2019
by
Ken you
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add cashFlowfInal ebs synchronization date ---Ken
parent
72e50540
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
EbsApiServiceImpl.java
...java/pwc/taxtech/atms/service/impl/EbsApiServiceImpl.java
+14
-5
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/EbsApiServiceImpl.java
View file @
fd6d1a79
...
...
@@ -35,6 +35,8 @@ public class EbsApiServiceImpl implements EbsApiService {
@Resource
private
CashFlowMapper
cashFlowMapper
;
@Resource
private
CashFlowFinalMapper
cashFlowFinalMapper
;
@Resource
private
BalanceSheetMapper
balanceSheetMapper
;
@Resource
private
BalanceSheetPrcMapper
balanceSheetPrcMapper
;
...
...
@@ -301,7 +303,14 @@ public class EbsApiServiceImpl implements EbsApiService {
result
.
setCreateTime
(
new
Date
());
result
.
setCreateBy
(
getCurrentOperatorName
(
id
));
cashFlowMapper
.
insertSelective
(
result
);
logger
.
debug
(
"start to insert cashFlowFinal "
);
// 1、写入最终表
CashFlowExample
cashFlowExample
=
new
CashFlowExample
();
cashFlowExample
.
createCriteria
().
andEntityCodeEqualTo
(
item
.
getEntityCode
()).
andPeriodEqualTo
(
result
.
getPeriod
()).
andTaskIdNotEqualTo
(
item
.
getTaskId
());
if
(
cashFlowFinalMapper
.
countByExample
(
cashFlowExample
)
>
0
)
{
cashFlowFinalMapper
.
deleteByExample
(
cashFlowExample
);
}
cashFlowFinalMapper
.
insertSelective
(
result
);
}
private
void
processBS
(
Long
id
,
BalanceSheetQueryDto
item
)
{
...
...
@@ -325,7 +334,7 @@ public class EbsApiServiceImpl implements EbsApiService {
logger
.
debug
(
"start to insert balanceSheetFinal "
);
// 1、写入最终表
BalanceSheetExample
balanceSheetExample
=
new
BalanceSheetExample
();
balanceSheetExample
.
createCriteria
().
and
OrganizationIdEqualTo
(
result
.
getOrganizationId
()).
andPeriodEqualTo
(
result
.
getPeriod
()).
andTaskIdNotEqualTo
(
item
.
getTaskId
());
balanceSheetExample
.
createCriteria
().
and
EntityCodeEqualTo
(
item
.
getEntityCode
()).
andPeriodEqualTo
(
result
.
getPeriod
()).
andTaskIdNotEqualTo
(
item
.
getTaskId
());
if
(
balanceSheetFinalMapper
.
countByExample
(
balanceSheetExample
)
>
0
)
{
balanceSheetFinalMapper
.
deleteByExample
(
balanceSheetExample
);
}
...
...
@@ -354,7 +363,7 @@ public class EbsApiServiceImpl implements EbsApiService {
// 1、写入最终表
logger
.
debug
(
"start to insert BalanceSheetPrcFinal "
);
BalanceSheetPrcExample
balanceSheetPrcExample
=
new
BalanceSheetPrcExample
();
balanceSheetPrcExample
.
createCriteria
().
and
OrganizationIdEqualTo
(
result
.
getOrganizationId
()).
andPeriodEqualTo
(
result
.
getPeriod
()).
andTaskIdNotEqualTo
(
item
.
getTaskId
());
balanceSheetPrcExample
.
createCriteria
().
and
EntityCodeEqualTo
(
item
.
getEntityCode
()).
andPeriodEqualTo
(
result
.
getPeriod
()).
andTaskIdNotEqualTo
(
item
.
getTaskId
());
if
(
balanceSheetPrcFinalMapper
.
countByExample
(
balanceSheetPrcExample
)
>
0
)
{
balanceSheetPrcFinalMapper
.
deleteByExample
(
balanceSheetPrcExample
);
}
...
...
@@ -382,7 +391,7 @@ public class EbsApiServiceImpl implements EbsApiService {
logger
.
debug
(
"start to insert profitLossStatementFinal "
);
// 1、写入最终表
ProfitLossStatementExample
profitLossStatementExample
=
new
ProfitLossStatementExample
();
profitLossStatementExample
.
createCriteria
().
and
OrganizationIdEqualTo
(
result
.
getOrganizationId
()).
andPeriodEqualTo
(
result
.
getPeriod
()).
andTaskIdNotEqualTo
(
item
.
getTaskId
());
profitLossStatementExample
.
createCriteria
().
and
EntityCodeEqualTo
(
item
.
getEntityCode
()).
andPeriodEqualTo
(
result
.
getPeriod
()).
andTaskIdNotEqualTo
(
item
.
getTaskId
());
if
(
profitLossStatementFinalMapper
.
countByExample
(
profitLossStatementExample
)
>
0
)
{
profitLossStatementFinalMapper
.
deleteByExample
(
profitLossStatementExample
);
}
...
...
@@ -410,7 +419,7 @@ public class EbsApiServiceImpl implements EbsApiService {
logger
.
debug
(
"start to insert profitLossStatementPrcFinal "
);
// 1、写入最终表
ProfitLossStatementPrcExample
profitLossStatementPrcExample
=
new
ProfitLossStatementPrcExample
();
profitLossStatementPrcExample
.
createCriteria
().
and
OrganizationIdEqualTo
(
result
.
getOrganizationId
()).
andPeriodEqualTo
(
result
.
getPeriod
()).
andTaskIdNotEqualTo
(
item
.
getTaskId
());
profitLossStatementPrcExample
.
createCriteria
().
and
EntityCodeEqualTo
(
item
.
getEntityCode
()).
andPeriodEqualTo
(
result
.
getPeriod
()).
andTaskIdNotEqualTo
(
item
.
getTaskId
());
if
(
profitLossStatementPrcFinalMapper
.
countByExample
(
profitLossStatementPrcExample
)
>
0
)
{
profitLossStatementPrcFinalMapper
.
deleteByExample
(
profitLossStatementPrcExample
);
}
...
...
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