package com.iailab.module.job.task; import com.iailab.module.prod.service.PrdDayProdService; 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("syncPrdDayProdTask") public class SyncPrdDayProdTask implements ITask { private Logger logger = LoggerFactory.getLogger(getClass()); @Resource private PrdDayProdService prdDayProdService; @Override public void run(String params) { try { logger.info("SyncPrdDayProdTask 开始"); prdDayProdService.syncData(params); logger.info("SyncPrdDayProdTask 完成"); } catch (Exception ex) { logger.info("SyncPrdDayProdTask 异常"); ex.printStackTrace(); } } }