修复定时任务新增没有分组

This commit is contained in:
TinyAnts 2022-12-02 16:54:46 +08:00
parent a1a70346c9
commit f7a1b14500
2 changed files with 4 additions and 0 deletions

View File

@ -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());

View File

@ -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;