Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
polysoft-nafmii
/
polysoft-parent
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 34031532
authored
Apr 25, 2021
by
ypenglv
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
common处理
1 parent
17adc532
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
6 deletions
nafmii-common/src/main/java/org/nafmii/exception/BusinessExceptionHandler.java
nafmii-common/src/main/java/org/nafmii/result/Result.java
nafmii-common/src/main/java/org/nafmii/exception/BusinessExceptionHandler.java
View file @
3403153
...
...
@@ -38,7 +38,7 @@ public class BusinessExceptionHandler {
@ResponseBody
public
Result
businessErrorHandler
(
BusinessException
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
return
new
Result
(
e
.
getStatusCode
(
),
e
.
getMessage
());
return
new
Result
(
new
Long
((
long
)
e
.
getStatusCode
()
),
e
.
getMessage
());
}
/**
...
...
nafmii-common/src/main/java/org/nafmii/result/Result.java
View file @
3403153
...
...
@@ -10,7 +10,6 @@ import org.nafmii.constant.MessageEnum;
@Data
public
class
Result
<
T
>
{
private
Long
code
;
private
Integer
intCode
;
private
String
message
;
private
T
data
;
...
...
@@ -23,10 +22,6 @@ public class Result<T> {
this
.
code
=
code
;
this
.
message
=
message
;
}
public
Result
(
Integer
intCode
,
String
message
)
{
this
.
intCode
=
intCode
;
this
.
message
=
message
;
}
/**
* 成功返回结果
*
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment