package com.iailab.module.job.task; import com.iailab.module.quality.service.QualityQualityTrendDayService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.annotation.Resource; import org.springframework.stereotype.Component; /** * 同步日煤质趋势 * * @author PanZhibao * @Description * @createTime 2024年05月26日 */ @Component("syncQualityTrendDayTask") public class SyncQualityTrendDayTask implements ITask { private Logger logger = LoggerFactory.getLogger(getClass()); @Resource private QualityQualityTrendDayService qualityQualityTrendDayService; @Override public void run(String params) { try { logger.info("SyncQualityTrendDayTask 开始"); qualityQualityTrendDayService.syncData(); logger.info("SyncQualityTrendDayTask 完成"); } catch (Exception ex) { logger.info("SyncQualityTrendDayTask 异常"); ex.printStackTrace(); } } }