feat(新增): 初始化实体类、接口相关
This commit is contained in:
parent
e6c24be3e1
commit
1b90ad8521
|
@ -15,12 +15,15 @@ public class NewCodeGet {
|
||||||
// 作者名称
|
// 作者名称
|
||||||
public static final String author = "Bunny";
|
public static final String author = "Bunny";
|
||||||
// 公共路径
|
// 公共路径
|
||||||
public static final String outputDir = "D:\\MyFolder\\Quartz-Demo\\service";
|
// public static final String outputDir = "D:\\MyFolder\\Quartz-Demo\\service";
|
||||||
|
public static final String outputDir = "D:\\Project\\web\\PC\\demo\\Quartz-Demo\\service";
|
||||||
// 实体类名称
|
// 实体类名称
|
||||||
public static final String entity = "Bunny";
|
public static final String entity = "Bunny";
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
Generation("QRTZ_BLOB_TRIGGERS");
|
Generation("QRTZ_CALENDARS","QRTZ_CRON_TRIGGERS","QRTZ_FIRED_TRIGGERS","QRTZ_JOB_DETAILS","QRTZ_LOCKS","QRTZ_PAUSED_TRIGGER_GRPS","QRTZ_SCHEDULER_STATE",
|
||||||
|
"QRTZ_SIMPLE_TRIGGERS","QRTZ_SIMPROP_TRIGGERS","QRTZ_TRIGGERS"
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
package cn.bunny.dto.quartz;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Builder
|
||||||
|
public class QuartzDto {
|
||||||
|
private String jobName;// 任务名称
|
||||||
|
private String jobGroup;// 任务分组
|
||||||
|
private String description;// 任务描述
|
||||||
|
private String jobClassName;// 执行类
|
||||||
|
private String jobMethodName;// 执行方法
|
||||||
|
private String cronExpression;// 执行时间
|
||||||
|
private String triggerName;// 执行时间
|
||||||
|
private String triggerState;// 任务状态
|
||||||
|
|
||||||
|
private String oldJobName;// 任务名称 用于修改
|
||||||
|
private String oldJobGroup;// 任务分组 用于修改
|
||||||
|
}
|
|
@ -0,0 +1,41 @@
|
||||||
|
package cn.bunny.entity.system.quartz;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("QRTZ_CALENDARS")
|
||||||
|
@ApiModel(value = "Calendars对象", description = "")
|
||||||
|
public class Calendars implements Serializable {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@TableField(value = "SCHED_NAME")
|
||||||
|
private String schedName;
|
||||||
|
|
||||||
|
@TableField(value = "CALENDAR_NAME")
|
||||||
|
private String calendarName;
|
||||||
|
|
||||||
|
private byte[] calendar;
|
||||||
|
}
|
|
@ -0,0 +1,46 @@
|
||||||
|
package cn.bunny.entity.system.quartz;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("QRTZ_CRON_TRIGGERS")
|
||||||
|
@ApiModel(value = "CronTriggers对象", description = "")
|
||||||
|
public class CronTriggers implements Serializable {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@TableField(value = "SCHED_NAME")
|
||||||
|
private String schedName;
|
||||||
|
|
||||||
|
@TableField(value = "TRIGGER_NAME")
|
||||||
|
private String triggerName;
|
||||||
|
|
||||||
|
@TableField(value = "TRIGGER_GROUP")
|
||||||
|
private String triggerGroup;
|
||||||
|
|
||||||
|
private String cronExpression;
|
||||||
|
|
||||||
|
private String timeZoneId;
|
||||||
|
}
|
|
@ -0,0 +1,61 @@
|
||||||
|
package cn.bunny.entity.system.quartz;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("QRTZ_FIRED_TRIGGERS")
|
||||||
|
@ApiModel(value = "FiredTriggers对象", description = "")
|
||||||
|
public class FiredTriggers implements Serializable {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@TableField(value = "SCHED_NAME")
|
||||||
|
private String schedName;
|
||||||
|
|
||||||
|
@TableField(value = "ENTRY_ID")
|
||||||
|
private String entryId;
|
||||||
|
|
||||||
|
private String triggerName;
|
||||||
|
|
||||||
|
private String triggerGroup;
|
||||||
|
|
||||||
|
private String instanceName;
|
||||||
|
|
||||||
|
private Long firedTime;
|
||||||
|
|
||||||
|
private Long schedTime;
|
||||||
|
|
||||||
|
private Integer priority;
|
||||||
|
|
||||||
|
private String state;
|
||||||
|
|
||||||
|
private String jobName;
|
||||||
|
|
||||||
|
private String jobGroup;
|
||||||
|
|
||||||
|
private String isNonconcurrent;
|
||||||
|
|
||||||
|
private String requestsRecovery;
|
||||||
|
}
|
|
@ -0,0 +1,56 @@
|
||||||
|
package cn.bunny.entity.system.quartz;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("QRTZ_JOB_DETAILS")
|
||||||
|
@ApiModel(value = "JobDetails对象", description = "")
|
||||||
|
public class JobDetails implements Serializable {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@TableField(value = "SCHED_NAME")
|
||||||
|
private String schedName;
|
||||||
|
|
||||||
|
@TableField(value = "JOB_NAME")
|
||||||
|
private String jobName;
|
||||||
|
|
||||||
|
@TableField(value = "JOB_GROUP")
|
||||||
|
private String jobGroup;
|
||||||
|
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
private String jobClassName;
|
||||||
|
|
||||||
|
private String isDurable;
|
||||||
|
|
||||||
|
private String isNonconcurrent;
|
||||||
|
|
||||||
|
private String isUpdateData;
|
||||||
|
|
||||||
|
private String requestsRecovery;
|
||||||
|
|
||||||
|
private byte[] jobData;
|
||||||
|
}
|
|
@ -0,0 +1,39 @@
|
||||||
|
package cn.bunny.entity.system.quartz;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("QRTZ_LOCKS")
|
||||||
|
@ApiModel(value = "Locks对象", description = "")
|
||||||
|
public class Locks implements Serializable {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@TableField(value = "SCHED_NAME")
|
||||||
|
private String schedName;
|
||||||
|
|
||||||
|
@TableField(value = "LOCK_NAME")
|
||||||
|
private String lockName;
|
||||||
|
}
|
|
@ -0,0 +1,39 @@
|
||||||
|
package cn.bunny.entity.system.quartz;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("QRTZ_PAUSED_TRIGGER_GRPS")
|
||||||
|
@ApiModel(value = "PausedTriggerGrps对象", description = "")
|
||||||
|
public class PausedTriggerGrps implements Serializable {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@TableId(value = "SCHED_NAME")
|
||||||
|
private String schedName;
|
||||||
|
|
||||||
|
@TableField(value = "TRIGGER_GROUP")
|
||||||
|
private String triggerGroup;
|
||||||
|
}
|
|
@ -0,0 +1,43 @@
|
||||||
|
package cn.bunny.entity.system.quartz;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("QRTZ_SCHEDULER_STATE")
|
||||||
|
@ApiModel(value = "SchedulerState对象", description = "")
|
||||||
|
public class SchedulerState implements Serializable {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@TableField(value = "SCHED_NAME")
|
||||||
|
private String schedName;
|
||||||
|
|
||||||
|
@TableField(value = "INSTANCE_NAME")
|
||||||
|
private String instanceName;
|
||||||
|
|
||||||
|
private Long lastCheckinTime;
|
||||||
|
|
||||||
|
private Long checkinInterval;
|
||||||
|
}
|
|
@ -0,0 +1,48 @@
|
||||||
|
package cn.bunny.entity.system.quartz;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("QRTZ_SIMPLE_TRIGGERS")
|
||||||
|
@ApiModel(value = "SimpleTriggers对象", description = "")
|
||||||
|
public class SimpleTriggers implements Serializable {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@TableField(value = "SCHED_NAME")
|
||||||
|
private String schedName;
|
||||||
|
|
||||||
|
@TableField(value = "TRIGGER_NAME")
|
||||||
|
private String triggerName;
|
||||||
|
|
||||||
|
@TableField(value = "TRIGGER_GROUP")
|
||||||
|
private String triggerGroup;
|
||||||
|
|
||||||
|
private Long repeatCount;
|
||||||
|
|
||||||
|
private Long repeatInterval;
|
||||||
|
|
||||||
|
private Long timesTriggered;
|
||||||
|
}
|
|
@ -0,0 +1,65 @@
|
||||||
|
package cn.bunny.entity.system.quartz;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("QRTZ_SIMPROP_TRIGGERS")
|
||||||
|
@ApiModel(value = "SimpropTriggers对象", description = "")
|
||||||
|
public class SimpropTriggers implements Serializable {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@TableField(value = "SCHED_NAME")
|
||||||
|
private String schedName;
|
||||||
|
|
||||||
|
@TableField(value = "TRIGGER_NAME")
|
||||||
|
private String triggerName;
|
||||||
|
|
||||||
|
@TableField(value = "TRIGGER_GROUP")
|
||||||
|
private String triggerGroup;
|
||||||
|
|
||||||
|
private String strProp1;
|
||||||
|
|
||||||
|
private String strProp2;
|
||||||
|
|
||||||
|
private String strProp3;
|
||||||
|
|
||||||
|
private Integer intProp1;
|
||||||
|
|
||||||
|
private Integer intProp2;
|
||||||
|
|
||||||
|
private Long longProp1;
|
||||||
|
|
||||||
|
private Long longProp2;
|
||||||
|
|
||||||
|
private BigDecimal decProp1;
|
||||||
|
|
||||||
|
private BigDecimal decProp2;
|
||||||
|
|
||||||
|
private String boolProp1;
|
||||||
|
|
||||||
|
private String boolProp2;
|
||||||
|
}
|
|
@ -0,0 +1,68 @@
|
||||||
|
package cn.bunny.entity.system.quartz;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.IdType;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableField;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serial;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import io.swagger.annotations.ApiModel;
|
||||||
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
import lombok.experimental.Accessors;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
*
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
@Accessors(chain = true)
|
||||||
|
@TableName("QRTZ_TRIGGERS")
|
||||||
|
@ApiModel(value = "Triggers对象", description = "")
|
||||||
|
public class Triggers implements Serializable {
|
||||||
|
|
||||||
|
@Serial
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
@TableField(value = "SCHED_NAME")
|
||||||
|
private String schedName;
|
||||||
|
|
||||||
|
@TableField(value = "TRIGGER_NAME")
|
||||||
|
private String triggerName;
|
||||||
|
|
||||||
|
@TableField(value = "TRIGGER_GROUP")
|
||||||
|
private String triggerGroup;
|
||||||
|
|
||||||
|
private String jobName;
|
||||||
|
|
||||||
|
private String jobGroup;
|
||||||
|
|
||||||
|
private String description;
|
||||||
|
|
||||||
|
private Long nextFireTime;
|
||||||
|
|
||||||
|
private Long prevFireTime;
|
||||||
|
|
||||||
|
private Integer priority;
|
||||||
|
|
||||||
|
private String triggerState;
|
||||||
|
|
||||||
|
private String triggerType;
|
||||||
|
|
||||||
|
private Long startTime;
|
||||||
|
|
||||||
|
private Long endTime;
|
||||||
|
|
||||||
|
private String calendarName;
|
||||||
|
|
||||||
|
private Short misfireInstr;
|
||||||
|
|
||||||
|
private byte[] jobData;
|
||||||
|
}
|
|
@ -60,7 +60,7 @@
|
||||||
<groupId>org.aspectj</groupId>
|
<groupId>org.aspectj</groupId>
|
||||||
<artifactId>aspectjweaver</artifactId>
|
<artifactId>aspectjweaver</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- https://mvnrepository.com/artifact/org.quartz-scheduler/quartz -->
|
<!-- quartz定时任务 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.quartz-scheduler</groupId>
|
<groupId>org.quartz-scheduler</groupId>
|
||||||
<artifactId>quartz</artifactId>
|
<artifactId>quartz</artifactId>
|
||||||
|
@ -70,9 +70,9 @@
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.mchange</groupId>
|
<groupId>com.mchange</groupId>
|
||||||
<artifactId>c3p0</artifactId>
|
<artifactId>c3p0</artifactId>
|
||||||
<version>0.9.5.5</version> <!-- 请使用适合你项目的版本 -->
|
<version>0.9.5.5</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- https://mvnrepository.com/artifact/com.baomidou/dynamic-datasource-spring-boot3-starter -->
|
<!-- 配置多数据库源 -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.baomidou</groupId>
|
<groupId>com.baomidou</groupId>
|
||||||
<artifactId>dynamic-datasource-spring-boot3-starter</artifactId>
|
<artifactId>dynamic-datasource-spring-boot3-starter</artifactId>
|
||||||
|
|
|
@ -14,5 +14,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||||
@RestController
|
@RestController
|
||||||
@RequestMapping("/blobTriggers")
|
@RequestMapping("/blobTriggers")
|
||||||
public class BlobTriggersController {
|
public class BlobTriggersController {
|
||||||
|
// qrtz_job_details
|
||||||
|
// qrtz_triggers
|
||||||
|
// qrtz_cron_triggers
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.bunny.service.controller.quartz;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 前端控制器
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/calendars")
|
||||||
|
public class CalendarsController {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.bunny.service.controller.quartz;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 前端控制器
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/cronTriggers")
|
||||||
|
public class CronTriggersController {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.bunny.service.controller.quartz;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 前端控制器
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/firedTriggers")
|
||||||
|
public class FiredTriggersController {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.bunny.service.controller.quartz;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 前端控制器
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/jobDetails")
|
||||||
|
public class JobDetailsController {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.bunny.service.controller.quartz;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 前端控制器
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/locks")
|
||||||
|
public class LocksController {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.bunny.service.controller.quartz;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 前端控制器
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/pausedTriggerGrps")
|
||||||
|
public class PausedTriggerGrpsController {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.bunny.service.controller.quartz;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 前端控制器
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/schedulerState")
|
||||||
|
public class SchedulerStateController {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.bunny.service.controller.quartz;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 前端控制器
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/simpleTriggers")
|
||||||
|
public class SimpleTriggersController {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.bunny.service.controller.quartz;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 前端控制器
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/simpropTriggers")
|
||||||
|
public class SimpropTriggersController {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.bunny.service.controller.quartz;
|
||||||
|
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 前端控制器
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/triggers")
|
||||||
|
public class TriggersController {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,5 @@
|
||||||
|
package cn.bunny.service.job.dynamic;
|
||||||
|
|
||||||
|
public class JobHello {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.bunny.service.mapper.quartz;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.Calendars;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface CalendarsMapper extends BaseMapper<Calendars> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.bunny.service.mapper.quartz;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.CronTriggers;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface CronTriggersMapper extends BaseMapper<CronTriggers> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.bunny.service.mapper.quartz;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.FiredTriggers;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface FiredTriggersMapper extends BaseMapper<FiredTriggers> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.bunny.service.mapper.quartz;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.JobDetails;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface JobDetailsMapper extends BaseMapper<JobDetails> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.bunny.service.mapper.quartz;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.Locks;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface LocksMapper extends BaseMapper<Locks> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.bunny.service.mapper.quartz;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.PausedTriggerGrps;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface PausedTriggerGrpsMapper extends BaseMapper<PausedTriggerGrps> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.bunny.service.mapper.quartz;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.SchedulerState;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface SchedulerStateMapper extends BaseMapper<SchedulerState> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.bunny.service.mapper.quartz;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.SimpleTriggers;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface SimpleTriggersMapper extends BaseMapper<SimpleTriggers> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.bunny.service.mapper.quartz;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.SimpropTriggers;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface SimpropTriggersMapper extends BaseMapper<SimpropTriggers> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
package cn.bunny.service.mapper.quartz;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.Triggers;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* Mapper 接口
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface TriggersMapper extends BaseMapper<Triggers> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package cn.bunny.service.service.quartz;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.Calendars;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
public interface CalendarsService extends IService<Calendars> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package cn.bunny.service.service.quartz;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.CronTriggers;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
public interface CronTriggersService extends IService<CronTriggers> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package cn.bunny.service.service.quartz;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.FiredTriggers;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
public interface FiredTriggersService extends IService<FiredTriggers> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package cn.bunny.service.service.quartz;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.JobDetails;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
public interface JobDetailsService extends IService<JobDetails> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package cn.bunny.service.service.quartz;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.Locks;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
public interface LocksService extends IService<Locks> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package cn.bunny.service.service.quartz;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.PausedTriggerGrps;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
public interface PausedTriggerGrpsService extends IService<PausedTriggerGrps> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package cn.bunny.service.service.quartz;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.SchedulerState;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
public interface SchedulerStateService extends IService<SchedulerState> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package cn.bunny.service.service.quartz;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.SimpleTriggers;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
public interface SimpleTriggersService extends IService<SimpleTriggers> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package cn.bunny.service.service.quartz;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.SimpropTriggers;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
public interface SimpropTriggersService extends IService<SimpropTriggers> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,16 @@
|
||||||
|
package cn.bunny.service.service.quartz;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.Triggers;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
public interface TriggersService extends IService<Triggers> {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package cn.bunny.service.service.quartz.impl;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.Calendars;
|
||||||
|
import cn.bunny.service.mapper.quartz.CalendarsMapper;
|
||||||
|
import cn.bunny.service.service.quartz.CalendarsService;
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@DS("myDS")
|
||||||
|
public class CalendarsServiceImpl extends ServiceImpl<CalendarsMapper, Calendars> implements CalendarsService {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package cn.bunny.service.service.quartz.impl;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.CronTriggers;
|
||||||
|
import cn.bunny.service.mapper.quartz.CronTriggersMapper;
|
||||||
|
import cn.bunny.service.service.quartz.CronTriggersService;
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@DS("myDS")
|
||||||
|
public class CronTriggersServiceImpl extends ServiceImpl<CronTriggersMapper, CronTriggers> implements CronTriggersService {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package cn.bunny.service.service.quartz.impl;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.FiredTriggers;
|
||||||
|
import cn.bunny.service.mapper.quartz.FiredTriggersMapper;
|
||||||
|
import cn.bunny.service.service.quartz.FiredTriggersService;
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@DS("myDS")
|
||||||
|
public class FiredTriggersServiceImpl extends ServiceImpl<FiredTriggersMapper, FiredTriggers> implements FiredTriggersService {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package cn.bunny.service.service.quartz.impl;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.JobDetails;
|
||||||
|
import cn.bunny.service.mapper.quartz.JobDetailsMapper;
|
||||||
|
import cn.bunny.service.service.quartz.JobDetailsService;
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@DS("myDS")
|
||||||
|
public class JobDetailsServiceImpl extends ServiceImpl<JobDetailsMapper, JobDetails> implements JobDetailsService {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package cn.bunny.service.service.quartz.impl;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.Locks;
|
||||||
|
import cn.bunny.service.mapper.quartz.LocksMapper;
|
||||||
|
import cn.bunny.service.service.quartz.LocksService;
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@DS("myDS")
|
||||||
|
public class LocksServiceImpl extends ServiceImpl<LocksMapper, Locks> implements LocksService {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package cn.bunny.service.service.quartz.impl;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.PausedTriggerGrps;
|
||||||
|
import cn.bunny.service.mapper.quartz.PausedTriggerGrpsMapper;
|
||||||
|
import cn.bunny.service.service.quartz.PausedTriggerGrpsService;
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@DS("myDS")
|
||||||
|
public class PausedTriggerGrpsServiceImpl extends ServiceImpl<PausedTriggerGrpsMapper, PausedTriggerGrps> implements PausedTriggerGrpsService {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package cn.bunny.service.service.quartz.impl;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.SchedulerState;
|
||||||
|
import cn.bunny.service.mapper.quartz.SchedulerStateMapper;
|
||||||
|
import cn.bunny.service.service.quartz.SchedulerStateService;
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@DS("myDS")
|
||||||
|
public class SchedulerStateServiceImpl extends ServiceImpl<SchedulerStateMapper, SchedulerState> implements SchedulerStateService {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package cn.bunny.service.service.quartz.impl;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.SimpleTriggers;
|
||||||
|
import cn.bunny.service.mapper.quartz.SimpleTriggersMapper;
|
||||||
|
import cn.bunny.service.service.quartz.SimpleTriggersService;
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@DS("myDS")
|
||||||
|
public class SimpleTriggersServiceImpl extends ServiceImpl<SimpleTriggersMapper, SimpleTriggers> implements SimpleTriggersService {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package cn.bunny.service.service.quartz.impl;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.SimpropTriggers;
|
||||||
|
import cn.bunny.service.mapper.quartz.SimpropTriggersMapper;
|
||||||
|
import cn.bunny.service.service.quartz.SimpropTriggersService;
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@DS("myDS")
|
||||||
|
public class SimpropTriggersServiceImpl extends ServiceImpl<SimpropTriggersMapper, SimpropTriggers> implements SimpropTriggersService {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,22 @@
|
||||||
|
package cn.bunny.service.service.quartz.impl;
|
||||||
|
|
||||||
|
import cn.bunny.entity.system.quartz.Triggers;
|
||||||
|
import cn.bunny.service.mapper.quartz.TriggersMapper;
|
||||||
|
import cn.bunny.service.service.quartz.TriggersService;
|
||||||
|
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* <p>
|
||||||
|
* 服务实现类
|
||||||
|
* </p>
|
||||||
|
*
|
||||||
|
* @author Bunny
|
||||||
|
* @since 2024-07-25
|
||||||
|
*/
|
||||||
|
@Service
|
||||||
|
@DS("myDS")
|
||||||
|
public class TriggersServiceImpl extends ServiceImpl<TriggersMapper, Triggers> implements TriggersService {
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="cn.bunny.service.mapper.quartz.CalendarsMapper">
|
||||||
|
|
||||||
|
<!-- 通用查询映射结果 -->
|
||||||
|
<resultMap id="BaseResultMap" type="cn.bunny.entity.system.quartz.Calendars">
|
||||||
|
<id column="SCHED_NAME" property="schedName" />
|
||||||
|
<id column="CALENDAR_NAME" property="calendarName" />
|
||||||
|
<result column="CALENDAR" property="calendar" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<!-- 通用查询结果列 -->
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
SCHED_NAME, CALENDAR_NAME, CALENDAR
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,19 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="cn.bunny.service.mapper.quartz.CronTriggersMapper">
|
||||||
|
|
||||||
|
<!-- 通用查询映射结果 -->
|
||||||
|
<resultMap id="BaseResultMap" type="cn.bunny.entity.system.quartz.CronTriggers">
|
||||||
|
<id column="SCHED_NAME" property="schedName" />
|
||||||
|
<id column="TRIGGER_NAME" property="triggerName" />
|
||||||
|
<id column="TRIGGER_GROUP" property="triggerGroup" />
|
||||||
|
<result column="CRON_EXPRESSION" property="cronExpression" />
|
||||||
|
<result column="TIME_ZONE_ID" property="timeZoneId" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<!-- 通用查询结果列 -->
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP, CRON_EXPRESSION, TIME_ZONE_ID
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,27 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="cn.bunny.service.mapper.quartz.FiredTriggersMapper">
|
||||||
|
|
||||||
|
<!-- 通用查询映射结果 -->
|
||||||
|
<resultMap id="BaseResultMap" type="cn.bunny.entity.system.quartz.FiredTriggers">
|
||||||
|
<id column="SCHED_NAME" property="schedName" />
|
||||||
|
<id column="ENTRY_ID" property="entryId" />
|
||||||
|
<result column="TRIGGER_NAME" property="triggerName" />
|
||||||
|
<result column="TRIGGER_GROUP" property="triggerGroup" />
|
||||||
|
<result column="INSTANCE_NAME" property="instanceName" />
|
||||||
|
<result column="FIRED_TIME" property="firedTime" />
|
||||||
|
<result column="SCHED_TIME" property="schedTime" />
|
||||||
|
<result column="PRIORITY" property="priority" />
|
||||||
|
<result column="STATE" property="state" />
|
||||||
|
<result column="JOB_NAME" property="jobName" />
|
||||||
|
<result column="JOB_GROUP" property="jobGroup" />
|
||||||
|
<result column="IS_NONCONCURRENT" property="isNonconcurrent" />
|
||||||
|
<result column="REQUESTS_RECOVERY" property="requestsRecovery" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<!-- 通用查询结果列 -->
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
SCHED_NAME, ENTRY_ID, TRIGGER_NAME, TRIGGER_GROUP, INSTANCE_NAME, FIRED_TIME, SCHED_TIME, PRIORITY, STATE, JOB_NAME, JOB_GROUP, IS_NONCONCURRENT, REQUESTS_RECOVERY
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,24 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="cn.bunny.service.mapper.quartz.JobDetailsMapper">
|
||||||
|
|
||||||
|
<!-- 通用查询映射结果 -->
|
||||||
|
<resultMap id="BaseResultMap" type="cn.bunny.entity.system.quartz.JobDetails">
|
||||||
|
<id column="SCHED_NAME" property="schedName" />
|
||||||
|
<id column="JOB_NAME" property="jobName" />
|
||||||
|
<id column="JOB_GROUP" property="jobGroup" />
|
||||||
|
<result column="DESCRIPTION" property="description" />
|
||||||
|
<result column="JOB_CLASS_NAME" property="jobClassName" />
|
||||||
|
<result column="IS_DURABLE" property="isDurable" />
|
||||||
|
<result column="IS_NONCONCURRENT" property="isNonconcurrent" />
|
||||||
|
<result column="IS_UPDATE_DATA" property="isUpdateData" />
|
||||||
|
<result column="REQUESTS_RECOVERY" property="requestsRecovery" />
|
||||||
|
<result column="JOB_DATA" property="jobData" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<!-- 通用查询结果列 -->
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
SCHED_NAME, JOB_NAME, JOB_GROUP, DESCRIPTION, JOB_CLASS_NAME, IS_DURABLE, IS_NONCONCURRENT, IS_UPDATE_DATA, REQUESTS_RECOVERY, JOB_DATA
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,16 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="cn.bunny.service.mapper.quartz.LocksMapper">
|
||||||
|
|
||||||
|
<!-- 通用查询映射结果 -->
|
||||||
|
<resultMap id="BaseResultMap" type="cn.bunny.entity.system.quartz.Locks">
|
||||||
|
<id column="SCHED_NAME" property="schedName" />
|
||||||
|
<id column="LOCK_NAME" property="lockName" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<!-- 通用查询结果列 -->
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
SCHED_NAME, LOCK_NAME
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,16 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="cn.bunny.service.mapper.quartz.PausedTriggerGrpsMapper">
|
||||||
|
|
||||||
|
<!-- 通用查询映射结果 -->
|
||||||
|
<resultMap id="BaseResultMap" type="cn.bunny.entity.system.quartz.PausedTriggerGrps">
|
||||||
|
<id column="SCHED_NAME" property="schedName" />
|
||||||
|
<id column="TRIGGER_GROUP" property="triggerGroup" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<!-- 通用查询结果列 -->
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
SCHED_NAME, TRIGGER_GROUP
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,18 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="cn.bunny.service.mapper.quartz.SchedulerStateMapper">
|
||||||
|
|
||||||
|
<!-- 通用查询映射结果 -->
|
||||||
|
<resultMap id="BaseResultMap" type="cn.bunny.entity.system.quartz.SchedulerState">
|
||||||
|
<id column="SCHED_NAME" property="schedName" />
|
||||||
|
<id column="INSTANCE_NAME" property="instanceName" />
|
||||||
|
<result column="LAST_CHECKIN_TIME" property="lastCheckinTime" />
|
||||||
|
<result column="CHECKIN_INTERVAL" property="checkinInterval" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<!-- 通用查询结果列 -->
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
SCHED_NAME, INSTANCE_NAME, LAST_CHECKIN_TIME, CHECKIN_INTERVAL
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,20 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="cn.bunny.service.mapper.quartz.SimpleTriggersMapper">
|
||||||
|
|
||||||
|
<!-- 通用查询映射结果 -->
|
||||||
|
<resultMap id="BaseResultMap" type="cn.bunny.entity.system.quartz.SimpleTriggers">
|
||||||
|
<id column="SCHED_NAME" property="schedName" />
|
||||||
|
<id column="TRIGGER_NAME" property="triggerName" />
|
||||||
|
<id column="TRIGGER_GROUP" property="triggerGroup" />
|
||||||
|
<result column="REPEAT_COUNT" property="repeatCount" />
|
||||||
|
<result column="REPEAT_INTERVAL" property="repeatInterval" />
|
||||||
|
<result column="TIMES_TRIGGERED" property="timesTriggered" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<!-- 通用查询结果列 -->
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP, REPEAT_COUNT, REPEAT_INTERVAL, TIMES_TRIGGERED
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,28 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="cn.bunny.service.mapper.quartz.SimpropTriggersMapper">
|
||||||
|
|
||||||
|
<!-- 通用查询映射结果 -->
|
||||||
|
<resultMap id="BaseResultMap" type="cn.bunny.entity.system.quartz.SimpropTriggers">
|
||||||
|
<id column="SCHED_NAME" property="schedName" />
|
||||||
|
<id column="TRIGGER_NAME" property="triggerName" />
|
||||||
|
<id column="TRIGGER_GROUP" property="triggerGroup" />
|
||||||
|
<result column="STR_PROP_1" property="strProp1" />
|
||||||
|
<result column="STR_PROP_2" property="strProp2" />
|
||||||
|
<result column="STR_PROP_3" property="strProp3" />
|
||||||
|
<result column="INT_PROP_1" property="intProp1" />
|
||||||
|
<result column="INT_PROP_2" property="intProp2" />
|
||||||
|
<result column="LONG_PROP_1" property="longProp1" />
|
||||||
|
<result column="LONG_PROP_2" property="longProp2" />
|
||||||
|
<result column="DEC_PROP_1" property="decProp1" />
|
||||||
|
<result column="DEC_PROP_2" property="decProp2" />
|
||||||
|
<result column="BOOL_PROP_1" property="boolProp1" />
|
||||||
|
<result column="BOOL_PROP_2" property="boolProp2" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<!-- 通用查询结果列 -->
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP, STR_PROP_1, STR_PROP_2, STR_PROP_3, INT_PROP_1, INT_PROP_2, LONG_PROP_1, LONG_PROP_2, DEC_PROP_1, DEC_PROP_2, BOOL_PROP_1, BOOL_PROP_2
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
</mapper>
|
|
@ -0,0 +1,30 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
<mapper namespace="cn.bunny.service.mapper.quartz.TriggersMapper">
|
||||||
|
|
||||||
|
<!-- 通用查询映射结果 -->
|
||||||
|
<resultMap id="BaseResultMap" type="cn.bunny.entity.system.quartz.Triggers">
|
||||||
|
<id column="SCHED_NAME" property="schedName" />
|
||||||
|
<id column="TRIGGER_NAME" property="triggerName" />
|
||||||
|
<id column="TRIGGER_GROUP" property="triggerGroup" />
|
||||||
|
<result column="JOB_NAME" property="jobName" />
|
||||||
|
<result column="JOB_GROUP" property="jobGroup" />
|
||||||
|
<result column="DESCRIPTION" property="description" />
|
||||||
|
<result column="NEXT_FIRE_TIME" property="nextFireTime" />
|
||||||
|
<result column="PREV_FIRE_TIME" property="prevFireTime" />
|
||||||
|
<result column="PRIORITY" property="priority" />
|
||||||
|
<result column="TRIGGER_STATE" property="triggerState" />
|
||||||
|
<result column="TRIGGER_TYPE" property="triggerType" />
|
||||||
|
<result column="START_TIME" property="startTime" />
|
||||||
|
<result column="END_TIME" property="endTime" />
|
||||||
|
<result column="CALENDAR_NAME" property="calendarName" />
|
||||||
|
<result column="MISFIRE_INSTR" property="misfireInstr" />
|
||||||
|
<result column="JOB_DATA" property="jobData" />
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
<!-- 通用查询结果列 -->
|
||||||
|
<sql id="Base_Column_List">
|
||||||
|
SCHED_NAME, TRIGGER_NAME, TRIGGER_GROUP, JOB_NAME, JOB_GROUP, DESCRIPTION, NEXT_FIRE_TIME, PREV_FIRE_TIME, PRIORITY, TRIGGER_STATE, TRIGGER_TYPE, START_TIME, END_TIME, CALENDAR_NAME, MISFIRE_INSTR, JOB_DATA
|
||||||
|
</sql>
|
||||||
|
|
||||||
|
</mapper>
|
Loading…
Reference in New Issue