Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fgqyxxlr
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
yaru
fgqyxxlr
Commits
c9bd08c2
Commit
c9bd08c2
authored
Mar 13, 2019
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复定时任务执行失败后入库状态为成功
parent
4b8d64f1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
+1
-1
ruoyi-common/src/main/java/com/ruoyi/common/exception/BusinessException.java
+6
-0
ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/ScheduleRunnable.java
+2
-5
No files found.
ruoyi-admin/src/main/resources/static/ruoyi/js/ry-ui.js
View file @
c9bd08c2
...
...
@@ -31,7 +31,7 @@
showColumns
:
true
,
showToggle
:
true
,
showExport
:
false
,
clickToSelect
:
tru
e
,
clickToSelect
:
fals
e
,
fixedColumns
:
false
,
fixedNumber
:
0
,
rightFixedColumns
:
false
,
...
...
ruoyi-common/src/main/java/com/ruoyi/common/exception/BusinessException.java
View file @
c9bd08c2
...
...
@@ -16,6 +16,12 @@ public class BusinessException extends RuntimeException
this
.
message
=
message
;
}
public
BusinessException
(
String
message
,
Throwable
e
)
{
super
(
message
,
e
);
this
.
message
=
message
;
}
@Override
public
String
getMessage
()
{
...
...
ruoyi-quartz/src/main/java/com/ruoyi/quartz/util/ScheduleRunnable.java
View file @
c9bd08c2
package
com
.
ruoyi
.
quartz
.
util
;
import
java.lang.reflect.Method
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.util.ReflectionUtils
;
import
com.ruoyi.common.exception.BusinessException
;
import
com.ruoyi.common.utils.StringUtils
;
import
com.ruoyi.common.utils.spring.SpringUtils
;
...
...
@@ -15,8 +14,6 @@ import com.ruoyi.common.utils.spring.SpringUtils;
*/
public
class
ScheduleRunnable
implements
Runnable
{
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
ScheduleRunnable
.
class
);
private
Object
target
;
private
Method
method
;
private
String
params
;
...
...
@@ -54,7 +51,7 @@ public class ScheduleRunnable implements Runnable
}
catch
(
Exception
e
)
{
log
.
error
(
"执行定时任务 - :
"
,
e
);
throw
new
BusinessException
(
"执行定时任务失败
"
,
e
);
}
}
}
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