修改时间

This commit is contained in:
孙小云 2026-03-06 13:17:52 +08:00
parent a3aa635f59
commit 7969b8debd
1 changed files with 15 additions and 0 deletions

View File

@ -40,6 +40,21 @@ public class TaskPlan {
private Date endDate; private Date endDate;
/** 执行时间 */ /** 执行时间 */
/**
* 对于周期任务
* - 数据格式 Date 类型包含完整的日期和时间信息
* - 使用逻辑
* - executeTime 中提取时分秒部分
* - 将这些时分秒应用到当前周期任务的日期上
* - 生成一个新的 Date 对象作为任务的开始时间
* - 示例
* - 如果 executeTime 设置为 "2026-03-06 14:30:00"
* - 当生成 2026-03-10 的周期任务时任务开始时间会是 "2026-03-10 14:30:00"
* - 当生成 2026-03-15 的周期任务时任务开始时间会是 "2026-03-15 14:30:00"
*
* 对于定时任务
* executeTime 就是执行时间
*/
private Date executeTime; private Date executeTime;
/** 航线ID */ /** 航线ID */