package com.javaweb.quartz.task; import com.javaweb.geotdp.service.impl.GeoDataServiceImpl; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; /** * @author mzy-cxy */ @Component("collectStatisticsTask") public class CollectStatisticsTask { @Autowired private GeoDataServiceImpl geoDataService; /** * 扫描异常 */ public void scanCollectStatistics(){ System.out.println("统计汇总任务开始执行=============统计汇总任务开始执行!========================="); try { geoDataService.scanCollectStatistics(); } catch (Exception e) { System.out.println("统计汇总任务开始执行=============统计汇总任务执行失败!========================="); e.printStackTrace(); } System.out.println("统计汇总任务开始执行=============统计汇总执行结束!========================="); } }