mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-05-20 01:35:55 +08:00
修复定时任务新增没有分组
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user