Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
783f4d5b
authored
Apr 25, 2017
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调度报表
parent
92a124f4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/XxlJobServiceImpl.java
xxl-job-admin/src/main/webapp/WEB-INF/template/index.ftl
xxl-job-admin/src/main/webapp/static/js/index.js
xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/XxlJobServiceImpl.java
View file @
783f4d5b
...
@@ -12,6 +12,7 @@ import com.xxl.job.core.registry.RegistHelper;
...
@@ -12,6 +12,7 @@ import com.xxl.job.core.registry.RegistHelper;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.StringUtils
;
import
org.apache.commons.lang.time.DateUtils
;
import
org.apache.commons.lang.time.DateUtils
;
import
org.apache.commons.lang.time.FastDateFormat
;
import
org.quartz.CronExpression
;
import
org.quartz.CronExpression
;
import
org.quartz.SchedulerException
;
import
org.quartz.SchedulerException
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
...
@@ -329,7 +330,11 @@ public class XxlJobServiceImpl implements IXxlJobService {
...
@@ -329,7 +330,11 @@ public class XxlJobServiceImpl implements IXxlJobService {
triggerCountFailTotal
+=
dayFailCount
;
triggerCountFailTotal
+=
dayFailCount
;
}
}
}
else
{
}
else
{
return
new
ReturnT
<
Map
<
String
,
Object
>>(
ReturnT
.
FAIL_CODE
,
null
);
for
(
int
i
=
4
;
i
>
-
1
;
i
--)
{
triggerDayList
.
add
(
FastDateFormat
.
getInstance
(
"yyyy-MM-dd"
).
format
(
DateUtils
.
addDays
(
new
Date
(),
-
i
)));
triggerDayCountSucList
.
add
(
0
);
triggerDayCountFailList
.
add
(
0
);
}
}
}
Map
<
String
,
Object
>
result
=
new
HashMap
<
String
,
Object
>();
Map
<
String
,
Object
>
result
=
new
HashMap
<
String
,
Object
>();
...
...
xxl-job-admin/src/main/webapp/WEB-INF/template/index.ftl
View file @
783f4d5b
...
@@ -58,10 +58,12 @@
...
@@ -58,10 +58,12 @@
<span
class=
"info-box-number"
>
${jobLogCount}
</span>
<span
class=
"info-box-number"
>
${jobLogCount}
</span>
<div
class=
"progress"
>
<div
class=
"progress"
>
<div
class=
"progress-bar"
style=
"width: ${(jobLogSuccessCount*100/jobLogCount)?string("
0
.
00
")}%"
></div>
<div
class=
"progress-bar"
<#
if
jobLogCount
gt
0
>
style="width: ${(jobLogSuccessCount*100/jobLogCount)?string("0.00")}%"
</
#
if>
>
</div>
</div>
</div>
<span
class=
"progress-description"
>
<span
class=
"progress-description"
>
调度成功率:${(jobLogSuccessCount*100/jobLogCount)?string("0.00")}
<small>
%
</small>
<
#
if
jobLogCount
gt
0
>
调度成功率:${(jobLogSuccessCount*100/jobLogCount)?string("0.00")}
<small>
%
</small>
</
#
if>
</span>
</span>
</div>
</div>
</div>
</div>
...
...
xxl-job-admin/src/main/webapp/static/js/index.js
View file @
783f4d5b
...
@@ -47,7 +47,7 @@ $(function () {
...
@@ -47,7 +47,7 @@ $(function () {
},
},
toolbox
:
{
toolbox
:
{
feature
:
{
feature
:
{
saveAsImage
:
{}
/*saveAsImage: {}*/
}
}
},
},
grid
:
{
grid
:
{
...
...
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