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
a19857d3
Commit
a19857d3
authored
Mar 30, 2019
by
eddie.woo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add log
parent
455e7f5d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
DataImportService.java
...java/pwc/taxtech/atms/service/impl/DataImportService.java
+2
-4
No files found.
atms-api/src/main/java/pwc/taxtech/atms/service/impl/DataImportService.java
View file @
a19857d3
...
...
@@ -2043,13 +2043,12 @@ public class DataImportService extends BaseService {
log
.
setFileType
(
EnumEbsExtractType
.
getNameByCode
(
type
));
log
.
setPeriodStatus
(
"EBS抽取"
);
log
.
setOperator
(
operator
);
log
.
setId
(
idService
.
nextId
());
try
{
if
(
StringUtils
.
isEmpty
(
org
.
getEnterpriseAccountCode
()))
{
log
.
setId
(
idService
.
nextId
());
log
.
setImportResult
(
false
);
log
.
setErrorMsg
(
String
.
format
(
EnumApiCodeMsg
.
CALLFAILED
.
getMsg
(),
ErrorMessageCN
.
NoLedgerID
));
}
else
if
(
StringUtils
.
isEmpty
(
org
.
getCode
()))
{
log
.
setId
(
idService
.
nextId
());
log
.
setImportResult
(
false
);
log
.
setErrorMsg
(
String
.
format
(
EnumApiCodeMsg
.
CALLFAILED
.
getMsg
(),
ErrorMessageCN
.
NoCompanyCode
));
}
...
...
@@ -2101,11 +2100,11 @@ public class DataImportService extends BaseService {
default
:
break
;
}
logger
.
info
(
"EBS response: "
+
response
);
if
(
StringUtils
.
isNotEmpty
(
response
))
{
EbsCallResp
resp
=
JSON
.
parseObject
(
response
,
EbsCallResp
.
class
);
long
taskId
=
Long
.
valueOf
(
resp
.
getTaskId
());
if
(
taskId
==
-
1
)
{
log
.
setId
(
idService
.
nextId
());
log
.
setImportResult
(
false
);
log
.
setErrorMsg
(
String
.
format
(
EnumApiCodeMsg
.
CALLFAILED
.
getMsg
(),
resp
.
getTaskDesc
()));
}
else
{
...
...
@@ -2120,7 +2119,6 @@ public class DataImportService extends BaseService {
dataImportLogMapper
.
insertSelective
(
log
);
}
catch
(
Exception
e
)
{
logger
.
error
(
String
.
format
(
EnumApiCodeMsg
.
CALLFAILED
.
getMsg
(),
e
.
getMessage
()),
e
);
log
.
setId
(
idService
.
nextId
());
log
.
setImportResult
(
false
);
log
.
setErrorMsg
(
String
.
format
(
EnumApiCodeMsg
.
CALLFAILED
.
getMsg
(),
e
.
getMessage
()));
dataImportLogMapper
.
insertSelective
(
log
);
...
...
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