| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162 |
- /*
- * Copyright (c) 2021-2025, LXQ All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are met:
- *
- * Redistributions of source code must retain the above copyright notice,
- * this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * Neither the name of the com developer nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- * Author: LXQ (609827073@qq.com)
- */
- package com.kxs.daemon.quartz.entity;
- import com.baomidou.mybatisplus.annotation.FieldFill;
- import com.baomidou.mybatisplus.annotation.IdType;
- import com.baomidou.mybatisplus.annotation.TableField;
- import com.baomidou.mybatisplus.annotation.TableId;
- import com.baomidou.mybatisplus.extension.activerecord.Model;
- import io.swagger.v3.oas.annotations.media.Schema;
- import lombok.AllArgsConstructor;
- import lombok.Builder;
- import lombok.Data;
- import lombok.NoArgsConstructor;
- import java.time.LocalDateTime;
- /**
- * 定时任务调度表
- *
- * @author LXQ
- */
- @Data
- @Builder
- @NoArgsConstructor
- @AllArgsConstructor
- @Schema(description = "定时任务")
- public class SysJob extends Model<SysJob> {
- private static final long serialVersionUID = 1L;
- /**
- * 任务id
- */
- @TableId(value = "job_id", type = IdType.ASSIGN_ID)
- private Long jobId;
- /**
- * 任务名称
- */
- private String jobName;
- /**
- * 任务组名
- */
- private String jobGroup;
- /**
- * 组内执行顺利,值越大执行优先级越高,最大值9,最小值1
- */
- private String jobOrder;
- /**
- * 1、java类;2、spring bean名称;3、rest调用;4、jar调用;9其他
- */
- private String jobType;
- /**
- * job_type=3时,rest调用地址,仅支持rest get协议,需要增加String返回值,0成功,1失败;job_type=4时,jar路径;其它值为空
- */
- private String executePath;
- /**
- * job_type=1时,类完整路径;job_type=2时,spring bean名称;其它值为空
- */
- private String className;
- /**
- * 任务方法
- */
- private String methodName;
- /**
- * 参数值
- */
- private String methodParamsValue;
- /**
- * cron执行表达式
- */
- private String cronExpression;
- /**
- * 错失执行策略(1错失周期立即执行 2错失周期执行一次 3下周期执行)
- */
- private String misfirePolicy;
- /**
- * 1、多租户任务;2、非多租户任务
- */
- private String jobTenantType;
- /**
- * 状态(0、未发布;1、已发布;2、运行中;3、暂停;4、删除;)
- */
- private String jobStatus;
- /**
- * 状态(0正常 1异常)
- */
- private String jobExecuteStatus;
- /**
- * 创建者
- */
- @TableField(fill = FieldFill.INSERT)
- private String createBy;
- /**
- * 更新者
- */
- @TableField(fill = FieldFill.UPDATE)
- private String updateBy;
- /**
- * 创建时间
- */
- @TableField(fill = FieldFill.INSERT)
- private LocalDateTime createTime;
- /**
- * 修改时间
- */
- @TableField(fill = FieldFill.UPDATE)
- private LocalDateTime updateTime;
- /**
- * 首次执行时间
- */
- private LocalDateTime startTime;
- /**
- * 上次执行时间
- */
- private LocalDateTime previousTime;
- /**
- * 下次执行时间
- */
- private LocalDateTime nextTime;
- /**
- * 备注信息
- */
- private String remark;
- }
|