瀏覽代碼

调度报表

xueli.xue 8 年之前
父節點
當前提交
66e6dd9352

+ 4 - 3
xxl-job-admin/src/main/webapp/WEB-INF/template/index.ftl

@@ -58,12 +58,13 @@
                             <span class="info-box-number">${jobLogCount}</span>
 
                             <div class="progress">
-                                <div class="progress-bar" <#if jobLogCount gt 0> style="width: ${(jobLogSuccessCount*100/jobLogCount)?string("0.00")}%" </#if> ></div>
+                                <div class="progress-bar" style="width: 100%" ></div>
                             </div>
                             <span class="progress-description">
-                                <#if jobLogCount gt 0>
+                                调度中心触发的调度次数
+                                <#--<#if jobLogCount gt 0>
                                     调度成功率:${(jobLogSuccessCount*100/jobLogCount)?string("0.00")}<small>%</small>
-                                </#if>
+                                </#if>-->
                             </span>
                         </div>
                     </div>

+ 1 - 1
xxl-job-admin/src/main/webapp/static/js/index.js

@@ -103,7 +103,7 @@ $(function () {
     function pieChartInit(data) {
         var option = {
             title : {
-                text: '调度总次数',
+                text: '成功比例图',
                 /*subtext: 'subtext',*/
                 x:'center'
             },

+ 1 - 2
xxl-job-core/src/main/java/com/xxl/job/core/handler/impl/GlueJobHandler.java

@@ -25,8 +25,7 @@ public class GlueJobHandler extends IJobHandler {
 	@Override
 	public ReturnT<String> execute(String... params) throws Exception {
 		logger.info("----------- glue.version:{} -----------", glueUpdatetime);
-		jobHandler.execute(params);
-		return ReturnT.SUCCESS;
+		return jobHandler.execute(params);
 	}
 
 }