|
@ -54,6 +54,8 @@ public class JobService {
|
|
|
@Autowired
|
|
|
private CachePool cachePool;
|
|
|
|
|
|
private Long sleepTime=30000L;
|
|
|
|
|
|
@Transactional
|
|
|
public void stopById(String id) throws Exception {
|
|
|
QuartzJobConfig quartzJobConfig = wlyyJobConfigDao.findById(id, "1");
|
|
@ -164,7 +166,7 @@ public class JobService {
|
|
|
params.put("yesterday", getYesterday(0 - i));
|
|
|
if (!StringUtils.isEmpty(quartzJobConfig.getJobClass())) {
|
|
|
quartzHelper.startNow(getRightClass(quartzJobConfig), quartzJobConfig.getId() + UUID.randomUUID().toString().replace("-", ""), params);
|
|
|
Thread.sleep(60000L);
|
|
|
Thread.sleep(sleepTime);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@ -206,7 +208,7 @@ public class JobService {
|
|
|
params.put("yesterday", yesterday);
|
|
|
if (!StringUtils.isEmpty(quartzJobConfig.getJobClass())) {
|
|
|
quartzHelper.startNow(getRightClass(quartzJobConfig), quartzJobConfig.getId() + UUID.randomUUID().toString().replace("-", ""), params);
|
|
|
Thread.sleep(60000L);
|
|
|
Thread.sleep(sleepTime);
|
|
|
}
|
|
|
|
|
|
}
|
|
@ -252,7 +254,7 @@ public class JobService {
|
|
|
params.put("yesterday", yesterday);
|
|
|
if (!StringUtils.isEmpty(quartzJobConfig.getJobClass())) {
|
|
|
quartzHelper.startNow(getRightClass(quartzJobConfig), quartzJobConfig.getId() + UUID.randomUUID().toString().replace("-", ""), params);
|
|
|
Thread.sleep(60000L);
|
|
|
Thread.sleep(sleepTime);
|
|
|
}
|
|
|
}
|
|
|
|
|
@ -283,7 +285,7 @@ public class JobService {
|
|
|
params.put("yesterday", getYesterday(0 - i));
|
|
|
if (!StringUtils.isEmpty(quartzJobConfig.getJobClass())) {
|
|
|
quartzHelper.startNow(getRightClass(quartzJobConfig), quartzJobConfig.getId() + UUID.randomUUID().toString().replace("-", ""), params);
|
|
|
Thread.sleep(60000L);
|
|
|
Thread.sleep(sleepTime);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@ -418,7 +420,7 @@ public class JobService {
|
|
|
params.put("now", yesterday);
|
|
|
params.put("yesterday", day);
|
|
|
quartzHelper.startNow(HealthMessageJob.class, HealthMessageJob.jobKey + UUID.randomUUID().toString().replace("-", ""), params);
|
|
|
Thread.sleep(60000L);
|
|
|
Thread.sleep(sleepTime);
|
|
|
}
|
|
|
|
|
|
public void productHealthDataByDayToDay(String start, String end) throws Exception {
|