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
6cd5f530
Commit
6cd5f530
authored
Apr 19, 2019
by
eddie.woo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
汇率抽取
parent
a7a182ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
DataImportService.java
...java/pwc/taxtech/atms/service/impl/DataImportService.java
+6
-3
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/DataImportService.java
View file @
6cd5f530
...
...
@@ -1866,6 +1866,7 @@ public class DataImportService extends BaseService {
List
<
String
>
orgIds
=
organizationService
.
getMyOrgList
().
stream
().
map
(
OrgSelectDto:
:
getId
).
collect
(
Collectors
.
toList
());
// 这里会导致任何人都可以看到未映射到主体的数据
orgIds
.
add
(
""
);
orgIds
.
add
(
Constant
.
ALL
);
if
(!
EnumImportType
.
Undefined
.
getCode
().
equals
(
param
.
getType
()))
{
criteria
.
andTypeEqualTo
(
param
.
getType
()).
andDisplayEqualTo
(
true
);
criteria
.
andOrganizationIdIn
(
orgIds
);
...
...
@@ -2120,13 +2121,13 @@ public class DataImportService extends BaseService {
int
year
=
periodInt
/
100
;
int
month
=
periodInt
%
100
;
DataImportLog
log
=
new
DataImportLog
();
log
.
setTaxpayerIdNum
(
org
.
getTaxPayerNumber
());
if
(
type
==
EbsExtractTypeConstant
.
RATE
)
{
log
.
setTaxpayerIdNum
(
Constant
.
ALL
);
log
.
setCompanyName
(
Constant
.
ALL
);
log
.
setOrganizationId
(
Constant
.
ALL
);
log
.
setCompanyCode
(
Constant
.
ALL
);
}
else
{
log
.
setTaxpayerIdNum
(
org
.
getTaxPayerNumber
());
log
.
setCompanyName
(
org
.
getName
());
log
.
setOrganizationId
(
org
.
getId
());
log
.
setCompanyCode
(
code
);
...
...
@@ -2140,7 +2141,9 @@ public class DataImportService extends BaseService {
log
.
setOperator
(
operator
);
log
.
setId
(
idService
.
nextId
());
try
{
if
(
StringUtils
.
isEmpty
(
org
.
getEnterpriseAccountCode
()))
{
if
(
type
==
EbsExtractTypeConstant
.
RATE
)
{
//do nothing
}
else
if
(
StringUtils
.
isEmpty
(
org
.
getEnterpriseAccountCode
()))
{
log
.
setImportResult
(
false
);
log
.
setErrorMsg
(
String
.
format
(
EnumApiCodeMsg
.
CALLFAILED
.
getMsg
(),
ErrorMessageCN
.
NoLedgerID
));
}
else
if
(
StringUtils
.
isEmpty
(
org
.
getCode
()))
{
...
...
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