diff --git a/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobLogMapper.xml b/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobLogMapper.xml index 034ae6c1..ce5b367b 100644 --- a/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobLogMapper.xml +++ b/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobLogMapper.xml @@ -12,11 +12,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + + - select job_log_id, job_name, job_group, invoke_target, job_message, status, exception_info, create_time + select job_log_id, job_name, job_group, invoke_target, job_message, status, exception_info, start_time, end_time, create_time from sys_job_log @@ -78,6 +80,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" job_message, status, exception_info, + start_time, + end_time, create_time )values( #{jobLogId}, @@ -87,6 +91,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{jobMessage}, #{status}, #{exceptionInfo}, + #{startTime}, + #{endTime}, sysdate() ) diff --git a/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml b/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml index 69233bdf..e0061dea 100644 --- a/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml +++ b/ruoyi-quartz/src/main/resources/mapper/quartz/SysJobMapper.xml @@ -21,7 +21,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - select job_id, job_name, job_group, invoke_target, cron_expression, misfire_policy, concurrent, status, create_by, create_time, remark + select job_id, job_name, job_group, invoke_target, cron_expression, misfire_policy, concurrent, status, create_by, create_time, update_by, update_time, remark from sys_job diff --git a/ruoyi-quartz/src/main/resources/templates/monitor/job/detail.html b/ruoyi-quartz/src/main/resources/templates/monitor/job/detail.html index 7fd3f941..4cae4c16 100644 --- a/ruoyi-quartz/src/main/resources/templates/monitor/job/detail.html +++ b/ruoyi-quartz/src/main/resources/templates/monitor/job/detail.html @@ -7,91 +7,212 @@
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
+
+
+
定时任务执行日志详情
+
+
+
+
+

基础信息

+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+ 正常 + 失败 +
+
+
+ +
+

执行时间线

+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+ +
+
+
+
+ + +
+
+

执行方法

+
+
+ +
+
+
+
+ +
+ +
+

+	                        
+
+
+ +
+

日志详情

+
+
+ +
+
+
+
+
+ +
+ +
+

+	                        
+
+
+
+
+
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
- -
默认策略
-
立即执行
-
执行一次
-
放弃执行
-
-
- -
-
-
-
- -
-
-
+
+
+
定时任务详情
+
+
+
+
+

任务配置

+
+
+ +
+
+
+ +
+
+
+ +
+
+
+ +
+ 正常 + 暂停 +
+
+
+ +
+

调度信息

+
+
+ +
+ +
+
+
+ +
+ 默认策略 + 立即执行 + 执行一次 + 放弃执行 +
+
+
+ +
+ 允许 + 禁止 +
+
+
+ +
+
+
+
+ +
+
+

执行方法

+
+
+ +
+
+
+
+
+
+

元信息

+
+
+
+
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+
+
+
+
+
diff --git a/sql/ry_20250416.sql b/sql/ry_20260318.sql similarity index 99% rename from sql/ry_20250416.sql rename to sql/ry_20260318.sql index e7af8db8..26ff49ab 100644 --- a/sql/ry_20250416.sql +++ b/sql/ry_20260318.sql @@ -630,6 +630,8 @@ create table sys_job_log ( job_message varchar(500) comment '日志信息', status char(1) default '0' comment '执行状态(0正常 1失败)', exception_info varchar(2000) default '' comment '异常信息', + start_time datetime comment '执行开始时间', + end_time datetime comment '执行结束时间', create_time datetime comment '创建时间', primary key (job_log_id) ) engine=innodb comment = '定时任务调度日志表';