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
7fa60cff
Commit
7fa60cff
authored
Mar 19, 2019
by
gary
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、fix
parent
40eb5a1a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
DataImportService.java
...java/pwc/taxtech/atms/service/impl/DataImportService.java
+15
-0
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/DataImportService.java
View file @
7fa60cff
...
...
@@ -382,6 +382,9 @@ public class DataImportService extends BaseService {
if
(
addDataImportLog
(
dataImportLogs
)
<
1
)
{
return
OperationResultDto
.
error
(
ErrorMessage
.
ImportFailed
);
}
if
(!
dataImportLogs
.
stream
().
filter
(
dil
->
!
dil
.
getImportResult
()).
collect
(
Collectors
.
toList
()).
isEmpty
()){
return
OperationResultDto
.
error
();
}
return
OperationResultDto
.
success
();
}
catch
(
ServiceException
e
)
{
throw
e
;
...
...
@@ -553,6 +556,9 @@ public class DataImportService extends BaseService {
if
(
addDataImportLog
(
dataImportLogs
)
<
1
)
{
return
OperationResultDto
.
error
(
ErrorMessage
.
SystemError
);
}
if
(!
dataImportLogs
.
stream
().
filter
(
dil
->
!
dil
.
getImportResult
()).
collect
(
Collectors
.
toList
()).
isEmpty
()){
return
OperationResultDto
.
error
();
}
return
OperationResultDto
.
success
();
}
catch
(
ServiceException
e
)
{
throw
e
;
...
...
@@ -698,6 +704,9 @@ public class DataImportService extends BaseService {
if
(
addDataImportLog
(
dataImportLogs
)
<
1
)
{
return
OperationResultDto
.
error
(
ErrorMessage
.
SystemError
);
}
if
(!
dataImportLogs
.
stream
().
filter
(
dil
->
!
dil
.
getImportResult
()).
collect
(
Collectors
.
toList
()).
isEmpty
()){
return
OperationResultDto
.
error
();
}
return
OperationResultDto
.
success
();
}
catch
(
ServiceException
e
)
{
throw
e
;
...
...
@@ -912,6 +921,9 @@ public class DataImportService extends BaseService {
if
(
addDataImportLog
(
dataImportLogs
)
<
1
)
{
return
OperationResultDto
.
error
(
ErrorMessage
.
SystemError
);
}
if
(!
dataImportLogs
.
stream
().
filter
(
dil
->
!
dil
.
getImportResult
()).
collect
(
Collectors
.
toList
()).
isEmpty
()){
return
OperationResultDto
.
error
();
}
return
OperationResultDto
.
success
();
}
catch
(
ServiceException
e
)
{
throw
e
;
...
...
@@ -1385,6 +1397,9 @@ public class DataImportService extends BaseService {
if
(
addDataImportLog
(
dataImportLogs
)
<
1
)
{
return
OperationResultDto
.
error
(
ErrorMessage
.
SystemError
);
}
if
(!
dataImportLogs
.
stream
().
filter
(
dil
->
!
dil
.
getImportResult
()).
collect
(
Collectors
.
toList
()).
isEmpty
()){
return
OperationResultDto
.
error
();
}
return
OperationResultDto
.
success
();
}
catch
(
ServiceException
e
)
{
throw
e
;
...
...
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