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
fcf65a28
Commit
fcf65a28
authored
Feb 27, 2019
by
kevin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev_mysql' of
http://code.tech.tax.asia.pwcinternal.com/root/atms
into dev_mysql
parents
c017162f
054317bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
32 deletions
+32
-32
EbsApiController.java
...in/java/pwc/taxtech/atms/controller/EbsApiController.java
+32
-32
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/EbsApiController.java
View file @
fcf65a28
...
...
@@ -23,122 +23,122 @@ public class EbsApiController {
@Resource
private
EbsApiService
ebsApiService
;
@RequestMapping
(
value
=
"/
queryRemoteServerThenU
pdateJE"
,
method
=
RequestMethod
.
POST
)
public
ApiResultDto
queryRemoteServerThenU
pdateJE
(
@RequestBody
List
<
JournalEntryQueryDto
>
items
)
{
@RequestMapping
(
value
=
"/
u
pdateJE"
,
method
=
RequestMethod
.
POST
)
public
ApiResultDto
u
pdateJE
(
@RequestBody
List
<
JournalEntryQueryDto
>
items
)
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the
queryRemoteServerThenU
pdateJE return items is empty"
);
logger
.
debug
(
"the
u
pdateJE return items is empty"
);
return
ApiResultDto
.
success
(
Collections
.
emptyList
());
}
try
{
ebsApiService
.
queryRemoteServerThenUpdateJE
(
items
);
return
ApiResultDto
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"
queryRemoteServerThenU
pdateJE error."
,
e
);
logger
.
error
(
"
u
pdateJE error."
,
e
);
}
return
ApiResultDto
.
fail
();
}
@RequestMapping
(
value
=
"/
queryRemoteServerThenU
pdateTB"
,
method
=
RequestMethod
.
POST
)
public
ApiResultDto
queryRemoteServerThenU
pdateTB
(
@RequestBody
List
<
TrialBalanceQueryDto
>
items
)
{
@RequestMapping
(
value
=
"/
u
pdateTB"
,
method
=
RequestMethod
.
POST
)
public
ApiResultDto
u
pdateTB
(
@RequestBody
List
<
TrialBalanceQueryDto
>
items
)
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the
queryRemoteServerThenU
pdateTB return items is empty"
);
logger
.
debug
(
"the
u
pdateTB return items is empty"
);
return
ApiResultDto
.
success
(
Collections
.
emptyList
());
}
try
{
ebsApiService
.
queryRemoteServerThenUpdateTB
(
items
);
return
ApiResultDto
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"
queryRemoteServerThenU
pdateTB error."
,
e
);
logger
.
error
(
"
u
pdateTB error."
,
e
);
}
return
ApiResultDto
.
fail
();
}
@RequestMapping
(
value
=
"/
queryRemoteServerThenU
pdateCF"
,
method
=
RequestMethod
.
POST
)
public
ApiResultDto
queryRemoteServerThenU
pdateCF
(
@RequestBody
List
<
CashFlowQueryDto
>
items
)
{
@RequestMapping
(
value
=
"/
u
pdateCF"
,
method
=
RequestMethod
.
POST
)
public
ApiResultDto
u
pdateCF
(
@RequestBody
List
<
CashFlowQueryDto
>
items
)
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the
queryRemoteServerThenU
pdateCF return items is empty"
);
logger
.
debug
(
"the
u
pdateCF return items is empty"
);
return
ApiResultDto
.
success
(
Collections
.
emptyList
());
}
try
{
ebsApiService
.
queryRemoteServerThenUpdateCF
(
items
);
return
ApiResultDto
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"
queryRemoteServerThenU
pdateCF error."
,
e
);
logger
.
error
(
"
u
pdateCF error."
,
e
);
}
return
ApiResultDto
.
fail
();
}
@RequestMapping
(
value
=
"/
queryRemoteServerThenU
pdateBS"
,
method
=
RequestMethod
.
POST
)
public
ApiResultDto
queryRemoteServerThenU
pdateBS
(
@RequestBody
List
<
BalanceSheetQueryDto
>
items
)
{
@RequestMapping
(
value
=
"/
u
pdateBS"
,
method
=
RequestMethod
.
POST
)
public
ApiResultDto
u
pdateBS
(
@RequestBody
List
<
BalanceSheetQueryDto
>
items
)
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the
queryRemoteServerThenU
pdateBS return items is empty"
);
logger
.
debug
(
"the
u
pdateBS return items is empty"
);
return
ApiResultDto
.
success
(
Collections
.
emptyList
());
}
try
{
ebsApiService
.
queryRemoteServerThenUpdateBS
(
items
);
return
ApiResultDto
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"
queryRemoteServerThenU
pdateBS error."
,
e
);
logger
.
error
(
"
u
pdateBS error."
,
e
);
}
return
ApiResultDto
.
fail
();
}
@RequestMapping
(
value
=
"/
queryRemoteServerThenU
pdatePL"
,
method
=
RequestMethod
.
POST
)
public
ApiResultDto
queryRemoteServerThenU
pdatePL
(
@RequestBody
List
<
ProfitLossStatementQueryDto
>
items
)
{
@RequestMapping
(
value
=
"/
u
pdatePL"
,
method
=
RequestMethod
.
POST
)
public
ApiResultDto
u
pdatePL
(
@RequestBody
List
<
ProfitLossStatementQueryDto
>
items
)
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the
queryRemoteServerThenU
pdatePL return items is empty"
);
logger
.
debug
(
"the
u
pdatePL return items is empty"
);
return
ApiResultDto
.
success
(
Collections
.
emptyList
());
}
try
{
ebsApiService
.
queryRemoteServerThenUpdatePL
(
items
);
return
ApiResultDto
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"
queryRemoteServerThenU
pdatePL error."
,
e
);
logger
.
error
(
"
u
pdatePL error."
,
e
);
}
return
ApiResultDto
.
fail
();
}
@RequestMapping
(
value
=
"/
queryRemoteServerThenU
pdateBSprc"
,
method
=
RequestMethod
.
POST
)
public
ApiResultDto
queryRemoteServerThenU
pdateBSprc
(
@RequestBody
List
<
BalanceSheetPrcQueryDto
>
items
)
{
@RequestMapping
(
value
=
"/
u
pdateBSprc"
,
method
=
RequestMethod
.
POST
)
public
ApiResultDto
u
pdateBSprc
(
@RequestBody
List
<
BalanceSheetPrcQueryDto
>
items
)
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the
queryRemoteServerThenU
pdateBSprc return items is empty"
);
logger
.
debug
(
"the
u
pdateBSprc return items is empty"
);
return
ApiResultDto
.
success
(
Collections
.
emptyList
());
}
try
{
ebsApiService
.
queryRemoteServerThenUpdateBSprc
(
items
);
return
ApiResultDto
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"
queryRemoteServerThenU
pdateBSprc error."
,
e
);
logger
.
error
(
"
u
pdateBSprc error."
,
e
);
}
return
ApiResultDto
.
fail
();
}
@RequestMapping
(
value
=
"/
queryRemoteServerThenU
pdatePLprc"
,
method
=
RequestMethod
.
POST
)
public
ApiResultDto
queryRemoteServerThenU
pdatePLprc
(
@RequestBody
List
<
ProfitLossStatementPrcQueryDto
>
items
)
{
@RequestMapping
(
value
=
"/
u
pdatePLprc"
,
method
=
RequestMethod
.
POST
)
public
ApiResultDto
u
pdatePLprc
(
@RequestBody
List
<
ProfitLossStatementPrcQueryDto
>
items
)
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the
queryRemoteServerThenUpdatePL
return items is empty"
);
logger
.
debug
(
"the
updatePLprc
return items is empty"
);
return
ApiResultDto
.
success
(
Collections
.
emptyList
());
}
try
{
ebsApiService
.
queryRemoteServerThenUpdatePLprc
(
items
);
return
ApiResultDto
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"
queryRemoteServerThenU
pdatePLprc error."
,
e
);
logger
.
error
(
"
u
pdatePLprc error."
,
e
);
}
return
ApiResultDto
.
fail
();
}
@RequestMapping
(
value
=
"/
queryRemoteServerThenU
pdateOAR"
,
method
=
RequestMethod
.
POST
)
public
ApiResultDto
queryRemoteServerThenU
pdateOAR
(
@RequestBody
List
<
OrganizationAccountingRateQueryDto
>
items
)
{
@RequestMapping
(
value
=
"/
u
pdateOAR"
,
method
=
RequestMethod
.
POST
)
public
ApiResultDto
u
pdateOAR
(
@RequestBody
List
<
OrganizationAccountingRateQueryDto
>
items
)
{
if
(
CollectionUtils
.
isEmpty
(
items
))
{
logger
.
debug
(
"the
queryRemoteServerThenU
pdateOAR return items is empty"
);
logger
.
debug
(
"the
u
pdateOAR return items is empty"
);
return
ApiResultDto
.
success
(
Collections
.
emptyList
());
}
try
{
ebsApiService
.
queryRemoteServerThenUpdateOAR
(
items
);
return
ApiResultDto
.
success
();
}
catch
(
Exception
e
)
{
logger
.
error
(
"
queryRemoteServerThenU
pdateOAR error."
,
e
);
logger
.
error
(
"
u
pdateOAR error."
,
e
);
}
return
ApiResultDto
.
fail
();
}
...
...
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