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
eebe2311
Commit
eebe2311
authored
Jul 25, 2018
by
neo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[bugfix] log josn result for upload balance
parent
622c3e23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
TBDataImportController.java
...a/pwc/taxtech/atms/controller/TBDataImportController.java
+12
-2
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/TBDataImportController.java
View file @
eebe2311
package
pwc
.
taxtech
.
atms
.
controller
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.support.spring.GenericFastJsonRedisSerializer
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.http.MediaType
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.converter.json.GsonBuilderUtils
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -50,6 +55,7 @@ import static pwc.taxtech.atms.constant.Constant.HEADER_ROW_INDEX;
@RequestMapping
(
value
=
"api/v1/DataImport"
)
@RestController
public
class
TBDataImportController
{
private
static
Logger
LOGGER
=
LoggerFactory
.
getLogger
(
TBDataImportController
.
class
);
@Autowired
TBDataImportService
tbDataImportService
;
...
...
@@ -408,10 +414,14 @@ public class TBDataImportController {
@ApiOperation
(
value
=
"ImportBalance"
,
notes
=
""
)
@RequestMapping
(
value
=
"ImportBalance"
,
method
=
RequestMethod
.
POST
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
public
ResponseEntity
importBalanceList
(
@RequestBody
ImportBalanceDto
importDto
)
{
return
ResponseEntity
.
ok
(
dataImportService
.
importTrialBalance
(
importDto
.
getBalanceList
(),
importDto
.
getImportType
(),
OperationResultDto
result
=
dataImportService
.
importTrialBalance
(
importDto
.
getBalanceList
(),
importDto
.
getImportType
(),
importDto
.
getServiceTypeId
(),
identityService
.
getIdentityUser
().
getID
()
));
);
LOGGER
.
info
(
"import balance result {}"
,
JSON
.
toJSONString
(
result
));
return
ResponseEntity
.
ok
(
result
);
}
@RequestMapping
(
value
=
"GetParentCodesForDisplay"
,
method
=
RequestMethod
.
GET
,
produces
=
MediaType
.
APPLICATION_JSON_UTF8_VALUE
)
...
...
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