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
c64c1e24
Commit
c64c1e24
authored
Nov 16, 2018
by
eddie.woo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tb
parent
77bb7089
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
DataImportService.java
...java/pwc/taxtech/atms/service/impl/DataImportService.java
+12
-13
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/DataImportService.java
View file @
c64c1e24
...
...
@@ -6,8 +6,10 @@ import org.apache.commons.lang3.StringUtils;
import
org.springframework.stereotype.Service
;
import
pwc.taxtech.atms.common.config.SystemConfig
;
import
pwc.taxtech.atms.constant.Constant
;
import
pwc.taxtech.atms.constant.enums.StdAccountEnum
;
import
pwc.taxtech.atms.dao.*
;
import
pwc.taxtech.atms.dao.AccountMappingDao
;
import
pwc.taxtech.atms.dao.EnterpriseAccountSetOrgDao
;
import
pwc.taxtech.atms.dao.OrganizationMapper
;
import
pwc.taxtech.atms.dao.StandardAccountMapper
;
import
pwc.taxtech.atms.dto.vatdto.TrialBalanceDto
;
import
pwc.taxtech.atms.dto.vatdto.TrialBalanceParam
;
import
pwc.taxtech.atms.entity.*
;
...
...
@@ -97,17 +99,14 @@ public class DataImportService extends BaseService {
continue
;
}
tmp
.
forEach
(
o
->
{
if
(
StdAccountEnum
.
Direction
.
Credit
.
getCode
().
equals
(
standardAccount
.
getDirection
()))
{
dto
.
setCreditBal
(
add
(
dto
.
getCreditBal
(),
getGlBalance
(
o
.
getEnterpriseAccountCode
(),
sg3List
,
sg4List
).
getPtdCr
()));
dto
.
setBegCreditBal
(
add
(
dto
.
getBegCreditBal
(),
getGlBalance
(
o
.
getEnterpriseAccountCode
(),
sg3List
,
sg4List
).
getBeginCrBalance
()));
dto
.
setEndCreditBal
(
add
(
dto
.
getEndCreditBal
(),
getGlBalance
(
o
.
getEnterpriseAccountCode
(),
sg3List
,
sg4List
).
getEndCrBalance
()));
dto
.
setYearCreditBal
(
add
(
dto
.
getYearCreditBal
(),
getGlBalance
(
o
.
getEnterpriseAccountCode
(),
sg3List
,
sg4List
).
getYtdCr
()));
}
else
{
dto
.
setDebitBal
(
add
(
dto
.
getDebitBal
(),
getGlBalance
(
o
.
getEnterpriseAccountCode
(),
sg3List
,
sg4List
).
getPtdDr
()));
dto
.
setBegDebitBal
(
add
(
dto
.
getBegDebitBal
(),
getGlBalance
(
o
.
getEnterpriseAccountCode
(),
sg3List
,
sg4List
).
getBeginDrBalance
()));
dto
.
setEndDebitBal
(
add
(
dto
.
getEndDebitBal
(),
getGlBalance
(
o
.
getEnterpriseAccountCode
(),
sg3List
,
sg4List
).
getEndDrBalance
()));
dto
.
setYearDebitBal
(
add
(
dto
.
getYearDebitBal
(),
getGlBalance
(
o
.
getEnterpriseAccountCode
(),
sg3List
,
sg4List
).
getYtdDr
()));
}
dto
.
setCreditBal
(
add
(
dto
.
getCreditBal
(),
getGlBalance
(
o
.
getEnterpriseAccountCode
(),
sg3List
,
sg4List
).
getPtdCr
()));
dto
.
setBegCreditBal
(
add
(
dto
.
getBegCreditBal
(),
getGlBalance
(
o
.
getEnterpriseAccountCode
(),
sg3List
,
sg4List
).
getBeginCrBalance
()));
dto
.
setEndCreditBal
(
add
(
dto
.
getEndCreditBal
(),
getGlBalance
(
o
.
getEnterpriseAccountCode
(),
sg3List
,
sg4List
).
getEndCrBalance
()));
dto
.
setYearCreditBal
(
add
(
dto
.
getYearCreditBal
(),
getGlBalance
(
o
.
getEnterpriseAccountCode
(),
sg3List
,
sg4List
).
getYtdCr
()));
dto
.
setDebitBal
(
add
(
dto
.
getDebitBal
(),
getGlBalance
(
o
.
getEnterpriseAccountCode
(),
sg3List
,
sg4List
).
getPtdDr
()));
dto
.
setBegDebitBal
(
add
(
dto
.
getBegDebitBal
(),
getGlBalance
(
o
.
getEnterpriseAccountCode
(),
sg3List
,
sg4List
).
getBeginDrBalance
()));
dto
.
setEndDebitBal
(
add
(
dto
.
getEndDebitBal
(),
getGlBalance
(
o
.
getEnterpriseAccountCode
(),
sg3List
,
sg4List
).
getEndDrBalance
()));
dto
.
setYearDebitBal
(
add
(
dto
.
getYearDebitBal
(),
getGlBalance
(
o
.
getEnterpriseAccountCode
(),
sg3List
,
sg4List
).
getYtdDr
()));
});
}
}
...
...
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