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
be0c7734
Commit
be0c7734
authored
Dec 26, 2018
by
eddie.woo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge
parent
bcefaafa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
AtmsExceptionHandler.java
...ava/pwc/taxtech/atms/controller/AtmsExceptionHandler.java
+2
-0
OutputInvoiceController.java
.../pwc/taxtech/atms/controller/OutputInvoiceController.java
+1
-1
No files found.
atms-api/src/main/java/pwc/taxtech/atms/controller/AtmsExceptionHandler.java
View file @
be0c7734
...
...
@@ -52,6 +52,7 @@ public class AtmsExceptionHandler extends ResponseEntityExceptionHandler {
@ExceptionHandler
(
value
=
Throwable
.
class
)
public
void
handle
(
Throwable
throwable
,
HttpServletResponse
response
)
{
throwable
.
printStackTrace
();
logger
.
error
(
"handle : "
,
throwable
);
//noinspection Duplicates
try
{
response
.
setCharacterEncoding
(
"UTF-8"
);
...
...
@@ -65,6 +66,7 @@ public class AtmsExceptionHandler extends ResponseEntityExceptionHandler {
@ExceptionHandler
(
value
=
ServiceException
.
class
)
public
void
customHandle
(
pwc
.
taxtech
.
atms
.
common
.
ServiceException
exception
,
HttpServletResponse
response
)
{
//noinspection Duplicates
logger
.
error
(
exception
);
try
{
response
.
setCharacterEncoding
(
"UTF-8"
);
response
.
setContentType
(
"application/json; charset=UTF-8"
);
...
...
atms-api/src/main/java/pwc/taxtech/atms/controller/OutputInvoiceController.java
View file @
be0c7734
...
...
@@ -124,7 +124,7 @@ public class OutputInvoiceController {
new
pwc
.
taxtech
.
atms
.
dto
.
vatdto
.
OutputVATInvoiceInfoDto
();
d
=
beanUtil
.
copyProperties
(
x
,
d
);
d
.
setInvoiceTypeName
(
d
.
getInvoiceTypeName
());
d
.
setTaxRateS
(
x
.
getTaxRate
().
toString
()
+
"%"
);
d
.
setTaxRateS
(
x
.
getTaxRate
().
doubleValue
()
*
100
+
"%"
);
list2
.
add
(
d
);
});
list2
.
add
(
black
);
...
...
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