|
@ -20,6 +20,8 @@ import com.yihu.wlyy.statistics.model.signfamily.SignFamily;
|
|
|
import com.yihu.wlyy.statistics.vo.WlyyJobConfigVO;
|
|
|
import com.yihu.wlyy.statistics.vo.WlyyQuotaVO;
|
|
|
import org.quartz.SchedulerException;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
@ -37,6 +39,8 @@ import java.util.*;
|
|
|
*/
|
|
|
@Service
|
|
|
public class JobService {
|
|
|
|
|
|
private Logger logger= LoggerFactory.getLogger(JobService.class);
|
|
|
@Autowired
|
|
|
private QuartzHelper quartzHelper;
|
|
|
|
|
@ -54,7 +58,7 @@ public class JobService {
|
|
|
@Autowired
|
|
|
private CachePool cachePool;
|
|
|
|
|
|
private Long sleepTime=30000L;
|
|
|
private Long sleepTime=60000L;
|
|
|
|
|
|
@Transactional
|
|
|
public void stopById(String id) throws Exception {
|
|
@ -208,6 +212,7 @@ public class JobService {
|
|
|
params.put("yesterday", yesterday);
|
|
|
if (!StringUtils.isEmpty(quartzJobConfig.getJobClass())) {
|
|
|
quartzHelper.startNow(getRightClass(quartzJobConfig), quartzJobConfig.getId() + UUID.randomUUID().toString().replace("-", ""), params);
|
|
|
logger.info(quartzJobConfig.getId());
|
|
|
Thread.sleep(sleepTime);
|
|
|
}
|
|
|
|