Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nouiWithSpringMVC
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gechengyang
nouiWithSpringMVC
Commits
4a9d88d8
Commit
4a9d88d8
authored
Mar 18, 2021
by
WeiCong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加bd提前退出交易机制
parent
60001fbe
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
ExitTransactionException.java
...entation/noui/api/exception/ExitTransactionException.java
+1
-1
NoUiPresentation.java
...a/org/sss/presentation/noui/context/NoUiPresentation.java
+0
-0
AbstractCommonController.java
...resentation/noui/controller/AbstractCommonController.java
+8
-7
No files found.
src/main/java/org/sss/presentation/noui/api/exception/ExitTransactionException.java
View file @
4a9d88d8
...
...
@@ -5,7 +5,7 @@ public class ExitTransactionException extends RuntimeException {
private
String
errorCode
;
public
ExitTransactionException
(
String
message
,
String
errorCod
e
)
{
public
ExitTransactionException
(
String
errorCode
,
String
messag
e
)
{
super
(
message
);
this
.
errorCode
=
errorCode
;
}
...
...
src/main/java/org/sss/presentation/noui/context/NoUiPresentation.java
View file @
4a9d88d8
This diff is collapsed.
Click to expand it.
src/main/java/org/sss/presentation/noui/controller/AbstractCommonController.java
View file @
4a9d88d8
...
...
@@ -188,14 +188,15 @@ public abstract class AbstractCommonController {
ret
=
ResultUtil
.
result
(
NoUiPresentationUtil
.
retCode
(
context
),
NoUiPresentationUtil
.
retMsg
(
context
),
afterReturnData
,
paginationData
,
NoUiPresentationUtil
.
handleErrorReturnData
(
context
,
alias
),
NoUiPresentationUtil
.
handleCodeTableReturnData
(
context
,
alias
),
noUiVersion
.
getVersion
());
}
catch
(
ExitTransactionException
exitTrans
)
{
ret
=
ResultUtil
.
result
(
exitTrans
.
getErrorCode
(),
exitTrans
.
getMessage
(),
"service error"
,
noUiVersion
.
getVersion
());
}
catch
(
Throwable
e
)
{
log
.
error
(
"OnClick command error"
,
e
);
ret
=
ResultUtil
.
result
(
ErrorCodes
.
ERROR
,
"hander error"
,
"service error"
,
noUiVersion
.
getVersion
());
TxInfo
.
recordException
(
e
);
if
(
e
.
getCause
()
instanceof
ExitTransactionException
){
ExitTransactionException
exitTrans
=
ExitTransactionException
.
class
.
cast
(
e
.
getCause
());
ret
=
ResultUtil
.
result
(
exitTrans
.
getErrorCode
(),
exitTrans
.
getMessage
(),
exitTrans
.
getMessage
(),
noUiVersion
.
getVersion
());
}
else
{
log
.
error
(
"OnClick command error"
,
e
);
ret
=
ResultUtil
.
result
(
ErrorCodes
.
ERROR
,
"hander error"
,
"service error"
,
noUiVersion
.
getVersion
());
TxInfo
.
recordException
(
e
);
}
}
finally
{
if
(
context
!=
null
)
{
//context.getSupport().disconnect();
...
...
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