- 在官方文档中添加任务管理OpenAPI特性说明 - 引入TriggerStatus枚举类替代硬编码的调度状态值 - 更新XxlJobInfo模型中的调度状态字段类型注释 - 修改JobScheduleHelper中调度状态判断逻辑 - 调整XxlJobServiceImpl中任务启停状态设置方式 - 使用枚举值替换原有的数字常量提高代码可读性3.3.0-release
parent
6ce8d108ac
commit
2818c28c35
@ -0,0 +1,32 @@
|
||||
package com.xxl.job.admin.constant;
|
||||
|
||||
public enum TriggerStatus {
|
||||
|
||||
STOPPED(0, "stopped"),
|
||||
RUNNING(1, "running");
|
||||
|
||||
private int value;
|
||||
private String desc;
|
||||
|
||||
TriggerStatus(int value, String desc) {
|
||||
this.value = value;
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
public int getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(int value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
public String getDesc() {
|
||||
return desc;
|
||||
}
|
||||
|
||||
public void setDesc(String desc) {
|
||||
this.desc = desc;
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in new issue