|
@ -460,8 +460,8 @@ public class JobService {
|
|
|
|
|
|
public void startNoticeJob() throws Exception {
|
|
|
if (!quartzHelper.isExistJob(NoticeJob.jobKey)) {
|
|
|
// quartzHelper.addJob(NoticeJob.class,NoticeJob.jobCron,NoticeJob.jobKey,new HashMap<>());
|
|
|
quartzHelper.startNow(NoticeJob.class, UUID.randomUUID().toString().replace("-", ""), new HashMap<>());
|
|
|
quartzHelper.addJob(NoticeJob.class,NoticeJob.jobCron,NoticeJob.jobKey,new HashMap<>());
|
|
|
// quartzHelper.startNow(NoticeJob.class, UUID.randomUUID().toString().replace("-", ""), new HashMap<>());
|
|
|
|
|
|
} else {
|
|
|
throw new Exception("已经启动");
|