修复定时任务字段参数问题
This commit is contained in:
parent
b95e43c7ac
commit
38a6de13a5
|
|
@ -115,7 +115,7 @@ public class CrontabServiceImpl implements ICrontabService {
|
|||
public void add(CrontabCreateValidate createValidate) throws SchedulerException {
|
||||
Crontab crontab = new Crontab();
|
||||
crontab.setName(createValidate.getName());
|
||||
crontab.setTypes(createValidate.getGroups());
|
||||
crontab.setTypes(createValidate.getTypes());
|
||||
crontab.setCommand(createValidate.getCommand());
|
||||
crontab.setRules(createValidate.getRules());
|
||||
crontab.setStatus(createValidate.getStatus());
|
||||
|
|
@ -148,7 +148,7 @@ public class CrontabServiceImpl implements ICrontabService {
|
|||
|
||||
crontab.setName(updateValidate.getName());
|
||||
crontab.setCommand(updateValidate.getCommand());
|
||||
crontab.setTypes(updateValidate.getGroups());
|
||||
crontab.setTypes(updateValidate.getTypes());
|
||||
crontab.setRules(updateValidate.getRules());
|
||||
crontab.setStatus(updateValidate.getStatus());
|
||||
crontab.setRemark(updateValidate.getRemark());
|
||||
|
|
|
|||
|
|
@ -19,9 +19,9 @@ public class CrontabCreateValidate implements Serializable {
|
|||
@ApiModelProperty(value = "任务名称", required = true)
|
||||
private String name;
|
||||
|
||||
@NotNull(message = "groups参数缺失")
|
||||
@NotNull(message = "types参数缺失")
|
||||
@ApiModelProperty(value = "任务分组", required = true)
|
||||
private String groups;
|
||||
private String types;
|
||||
|
||||
@NotNull(message = "command参数缺失")
|
||||
@ApiModelProperty(value = "执行指令", required = true)
|
||||
|
|
|
|||
|
|
@ -20,9 +20,9 @@ public class CrontabUpdateValidate implements Serializable {
|
|||
@ApiModelProperty(value = "id", required = true)
|
||||
private Integer id;
|
||||
|
||||
@NotNull(message = "groups参数缺失")
|
||||
@NotNull(message = "types参数缺失")
|
||||
@ApiModelProperty(value = "任务分组", required = true)
|
||||
private String groups;
|
||||
private String types;
|
||||
|
||||
@NotNull(message = "name参数缺失")
|
||||
@ApiModelProperty(value = "任务名称", required = true)
|
||||
|
|
|
|||
Loading…
Reference in New Issue