修复定时任务新增没有分组
This commit is contained in:
parent
a1a70346c9
commit
f7a1b14500
|
|
@ -115,6 +115,7 @@ public class CrontabServiceImpl implements ICrontabService {
|
|||
public void add(CrontabCreateValidate createValidate) throws SchedulerException {
|
||||
Crontab crontab = new Crontab();
|
||||
crontab.setName(createValidate.getName());
|
||||
crontab.setGroups(createValidate.getGroups());
|
||||
crontab.setCommand(createValidate.getCommand());
|
||||
crontab.setRules(createValidate.getRules());
|
||||
crontab.setStatus(createValidate.getStatus());
|
||||
|
|
|
|||
|
|
@ -15,6 +15,9 @@ public class CrontabCreateValidate implements Serializable {
|
|||
@NotNull(message = "name参数缺失")
|
||||
private String name;
|
||||
|
||||
@NotNull(message = "groups参数缺失")
|
||||
private String groups;
|
||||
|
||||
@NotNull(message = "command参数缺失")
|
||||
private String command;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue