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