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
6f66e253
Commit
6f66e253
authored
Mar 12, 2019
by
Ken you
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update ebs apiResultDto message---Ken
parent
b3b510c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
EbsApiController.java
...in/java/pwc/taxtech/atms/controller/EbsApiController.java
+18
-18
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/EbsApiController.java
View file @
6f66e253
...
@@ -27,14 +27,14 @@ public class EbsApiController {
...
@@ -27,14 +27,14 @@ public class EbsApiController {
ApiResultDto
apiResultDto
=
new
ApiResultDto
();
ApiResultDto
apiResultDto
=
new
ApiResultDto
();
if
(
CollectionUtils
.
isEmpty
(
items
))
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the updateJE return items is empty"
);
logger
.
debug
(
"the updateJE return items is empty"
);
apiResultDto
.
setCode
(
0
);
apiResultDto
.
setCode
(
-
2
);
apiResultDto
.
setMessage
(
"获取日记账数据为空"
);
apiResultDto
.
setMessage
(
"获取日记账数据为空"
);
return
apiResultDto
;
return
apiResultDto
;
}
}
try
{
try
{
ebsApiService
.
queryRemoteServerThenUpdateJE
(
id
,
items
);
ebsApiService
.
queryRemoteServerThenUpdateJE
(
id
,
items
);
logger
.
debug
(
"日记账同步更新 success"
);
logger
.
debug
(
"日记账同步更新 success"
);
apiResultDto
.
setCode
(
1
);
apiResultDto
.
setCode
(
0
);
apiResultDto
.
setMessage
(
"日记账同步更新 success"
);
apiResultDto
.
setMessage
(
"日记账同步更新 success"
);
return
apiResultDto
;
return
apiResultDto
;
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
@@ -52,14 +52,14 @@ public class EbsApiController {
...
@@ -52,14 +52,14 @@ public class EbsApiController {
ApiResultDto
apiResultDto
=
new
ApiResultDto
();
ApiResultDto
apiResultDto
=
new
ApiResultDto
();
if
(
CollectionUtils
.
isEmpty
(
items
))
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the updateTB return items is empty"
);
logger
.
debug
(
"the updateTB return items is empty"
);
apiResultDto
.
setCode
(
0
);
apiResultDto
.
setCode
(
-
2
);
apiResultDto
.
setMessage
(
"获取科目余额数据为空"
);
apiResultDto
.
setMessage
(
"获取科目余额数据为空"
);
return
apiResultDto
;
return
apiResultDto
;
}
}
try
{
try
{
ebsApiService
.
queryRemoteServerThenUpdateTB
(
id
,
items
);
ebsApiService
.
queryRemoteServerThenUpdateTB
(
id
,
items
);
logger
.
debug
(
"科目余额数据同步更新 success"
);
logger
.
debug
(
"科目余额数据同步更新 success"
);
apiResultDto
.
setCode
(
1
);
apiResultDto
.
setCode
(
0
);
apiResultDto
.
setMessage
(
"科目余额数据同步更新 success"
);
apiResultDto
.
setMessage
(
"科目余额数据同步更新 success"
);
return
apiResultDto
;
return
apiResultDto
;
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
@@ -77,14 +77,14 @@ public class EbsApiController {
...
@@ -77,14 +77,14 @@ public class EbsApiController {
ApiResultDto
apiResultDto
=
new
ApiResultDto
();
ApiResultDto
apiResultDto
=
new
ApiResultDto
();
if
(
CollectionUtils
.
isEmpty
(
items
))
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the updateCF return items is empty"
);
logger
.
debug
(
"the updateCF return items is empty"
);
apiResultDto
.
setCode
(
0
);
apiResultDto
.
setCode
(
-
2
);
apiResultDto
.
setMessage
(
"获取现金流量数据为空"
);
apiResultDto
.
setMessage
(
"获取现金流量数据为空"
);
return
apiResultDto
;
return
apiResultDto
;
}
}
try
{
try
{
ebsApiService
.
queryRemoteServerThenUpdateCF
(
id
,
items
);
ebsApiService
.
queryRemoteServerThenUpdateCF
(
id
,
items
);
logger
.
debug
(
"现金流量数据同步更新 success"
);
logger
.
debug
(
"现金流量数据同步更新 success"
);
apiResultDto
.
setCode
(
1
);
apiResultDto
.
setCode
(
0
);
apiResultDto
.
setMessage
(
"现金流量数据同步更新 success"
);
apiResultDto
.
setMessage
(
"现金流量数据同步更新 success"
);
return
apiResultDto
;
return
apiResultDto
;
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
@@ -102,14 +102,14 @@ public class EbsApiController {
...
@@ -102,14 +102,14 @@ public class EbsApiController {
ApiResultDto
apiResultDto
=
new
ApiResultDto
();
ApiResultDto
apiResultDto
=
new
ApiResultDto
();
if
(
CollectionUtils
.
isEmpty
(
items
))
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the updateBS return items is empty"
);
logger
.
debug
(
"the updateBS return items is empty"
);
apiResultDto
.
setCode
(
0
);
apiResultDto
.
setCode
(
-
2
);
apiResultDto
.
setMessage
(
"获取资产负债数据为空"
);
apiResultDto
.
setMessage
(
"获取资产负债数据为空"
);
return
apiResultDto
;
return
apiResultDto
;
}
}
try
{
try
{
ebsApiService
.
queryRemoteServerThenUpdateBS
(
id
,
items
);
ebsApiService
.
queryRemoteServerThenUpdateBS
(
id
,
items
);
logger
.
debug
(
"资产负债数据同步更新 success"
);
logger
.
debug
(
"资产负债数据同步更新 success"
);
apiResultDto
.
setCode
(
1
);
apiResultDto
.
setCode
(
0
);
apiResultDto
.
setMessage
(
"资产负债数据同步更新 success"
);
apiResultDto
.
setMessage
(
"资产负债数据同步更新 success"
);
return
apiResultDto
;
return
apiResultDto
;
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
@@ -127,14 +127,14 @@ public class EbsApiController {
...
@@ -127,14 +127,14 @@ public class EbsApiController {
ApiResultDto
apiResultDto
=
new
ApiResultDto
();
ApiResultDto
apiResultDto
=
new
ApiResultDto
();
if
(
CollectionUtils
.
isEmpty
(
items
))
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the updatePL return items is empty"
);
logger
.
debug
(
"the updatePL return items is empty"
);
apiResultDto
.
setCode
(
0
);
apiResultDto
.
setCode
(
-
2
);
apiResultDto
.
setMessage
(
"获取利润数据为空"
);
apiResultDto
.
setMessage
(
"获取利润数据为空"
);
return
apiResultDto
;
return
apiResultDto
;
}
}
try
{
try
{
ebsApiService
.
queryRemoteServerThenUpdatePL
(
id
,
items
);
ebsApiService
.
queryRemoteServerThenUpdatePL
(
id
,
items
);
logger
.
debug
(
"利润数据同步更新 success"
);
logger
.
debug
(
"利润数据同步更新 success"
);
apiResultDto
.
setCode
(
1
);
apiResultDto
.
setCode
(
0
);
apiResultDto
.
setMessage
(
"利润数据同步更新 success"
);
apiResultDto
.
setMessage
(
"利润数据同步更新 success"
);
return
apiResultDto
;
return
apiResultDto
;
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
@@ -152,14 +152,14 @@ public class EbsApiController {
...
@@ -152,14 +152,14 @@ public class EbsApiController {
ApiResultDto
apiResultDto
=
new
ApiResultDto
();
ApiResultDto
apiResultDto
=
new
ApiResultDto
();
if
(
CollectionUtils
.
isEmpty
(
items
))
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the updateBSprc return items is empty"
);
logger
.
debug
(
"the updateBSprc return items is empty"
);
apiResultDto
.
setCode
(
0
);
apiResultDto
.
setCode
(
-
2
);
apiResultDto
.
setMessage
(
"获取资产负债PRC数据为空"
);
apiResultDto
.
setMessage
(
"获取资产负债PRC数据为空"
);
return
apiResultDto
;
return
apiResultDto
;
}
}
try
{
try
{
ebsApiService
.
queryRemoteServerThenUpdateBSprc
(
id
,
items
);
ebsApiService
.
queryRemoteServerThenUpdateBSprc
(
id
,
items
);
logger
.
debug
(
"资产负债PRC数据同步更新 success"
);
logger
.
debug
(
"资产负债PRC数据同步更新 success"
);
apiResultDto
.
setCode
(
1
);
apiResultDto
.
setCode
(
0
);
apiResultDto
.
setMessage
(
"资产负债PRC数据同步更新 success"
);
apiResultDto
.
setMessage
(
"资产负债PRC数据同步更新 success"
);
return
apiResultDto
;
return
apiResultDto
;
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
@@ -177,14 +177,14 @@ public class EbsApiController {
...
@@ -177,14 +177,14 @@ public class EbsApiController {
ApiResultDto
apiResultDto
=
new
ApiResultDto
();
ApiResultDto
apiResultDto
=
new
ApiResultDto
();
if
(
CollectionUtils
.
isEmpty
(
items
))
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the updatePLprc return items is empty"
);
logger
.
debug
(
"the updatePLprc return items is empty"
);
apiResultDto
.
setCode
(
0
);
apiResultDto
.
setCode
(
-
2
);
apiResultDto
.
setMessage
(
"获取利润PRC数据为空"
);
apiResultDto
.
setMessage
(
"获取利润PRC数据为空"
);
return
apiResultDto
;
return
apiResultDto
;
}
}
try
{
try
{
ebsApiService
.
queryRemoteServerThenUpdatePLprc
(
id
,
items
);
ebsApiService
.
queryRemoteServerThenUpdatePLprc
(
id
,
items
);
logger
.
debug
(
"利润PRC数据同步更新 success"
);
logger
.
debug
(
"利润PRC数据同步更新 success"
);
apiResultDto
.
setCode
(
1
);
apiResultDto
.
setCode
(
0
);
apiResultDto
.
setMessage
(
"利润PRC数据同步更新 success"
);
apiResultDto
.
setMessage
(
"利润PRC数据同步更新 success"
);
return
apiResultDto
;
return
apiResultDto
;
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
@@ -202,14 +202,14 @@ public class EbsApiController {
...
@@ -202,14 +202,14 @@ public class EbsApiController {
ApiResultDto
apiResultDto
=
new
ApiResultDto
();
ApiResultDto
apiResultDto
=
new
ApiResultDto
();
if
(
CollectionUtils
.
isEmpty
(
items
))
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the updateOAR return items is empty"
);
logger
.
debug
(
"the updateOAR return items is empty"
);
apiResultDto
.
setCode
(
0
);
apiResultDto
.
setCode
(
-
2
);
apiResultDto
.
setMessage
(
"获取汇率数据为空"
);
apiResultDto
.
setMessage
(
"获取汇率数据为空"
);
return
apiResultDto
;
return
apiResultDto
;
}
}
try
{
try
{
ebsApiService
.
queryRemoteServerThenUpdateOAR
(
id
,
items
);
ebsApiService
.
queryRemoteServerThenUpdateOAR
(
id
,
items
);
logger
.
debug
(
"汇率数据同步更新 success"
);
logger
.
debug
(
"汇率数据同步更新 success"
);
apiResultDto
.
setCode
(
1
);
apiResultDto
.
setCode
(
0
);
apiResultDto
.
setMessage
(
"汇率数据同步更新 success"
);
apiResultDto
.
setMessage
(
"汇率数据同步更新 success"
);
return
apiResultDto
;
return
apiResultDto
;
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
...
@@ -226,14 +226,14 @@ public class EbsApiController {
...
@@ -226,14 +226,14 @@ public class EbsApiController {
ApiResultDto
apiResultDto
=
new
ApiResultDto
();
ApiResultDto
apiResultDto
=
new
ApiResultDto
();
if
(
CollectionUtils
.
isEmpty
(
items
))
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the updateOrg return items is empty"
);
logger
.
debug
(
"the updateOrg return items is empty"
);
apiResultDto
.
setCode
(
0
);
apiResultDto
.
setCode
(
-
2
);
apiResultDto
.
setMessage
(
"获取机构信息数据为空"
);
apiResultDto
.
setMessage
(
"获取机构信息数据为空"
);
return
apiResultDto
;
return
apiResultDto
;
}
}
try
{
try
{
ebsApiService
.
queryRemoteServerThenUpdateOrg
(
id
,
items
);
ebsApiService
.
queryRemoteServerThenUpdateOrg
(
id
,
items
);
logger
.
debug
(
"机构信息数据同步更新 success"
);
logger
.
debug
(
"机构信息数据同步更新 success"
);
apiResultDto
.
setCode
(
1
);
apiResultDto
.
setCode
(
0
);
apiResultDto
.
setMessage
(
"机构信息数据同步更新 success"
);
apiResultDto
.
setMessage
(
"机构信息数据同步更新 success"
);
return
apiResultDto
;
return
apiResultDto
;
}
catch
(
Exception
e
){
}
catch
(
Exception
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