package com.iailab.module.job.task; import com.iailab.module.prod.service.StorageDayService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.annotation.Resource; import org.springframework.stereotype.Component; /** * 同步日仓储趋势 * * @author PanZhibao * @Description * @createTime 2024年06月01日 */ @Component("syncPrdStorageDayTask") public class SyncPrdStorageDayTask implements ITask { private Logger logger = LoggerFactory.getLogger(getClass()); @Resource private StorageDayService storageDayService; @Override public void run(String params) { try { logger.info("SyncPrdStorageDayTask 开始"); storageDayService.syncData(); logger.info("SyncPrdStorageDayTask 完成"); } catch (Exception ex) { logger.info("SyncPrdStorageDayTask 异常"); ex.printStackTrace(); } } }