package com.qianwen.smartman.modules.cps.jobHandler;
|
|
import com.xxl.job.core.biz.model.ReturnT;
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
import com.xxl.job.core.log.XxlJobLogger;
|
import org.slf4j.Logger;
|
import org.slf4j.LoggerFactory;
|
import com.qianwen.smartman.common.websocket.fms.FmsVisualDataMessageHandler;
|
import org.springframework.stereotype.Component;
|
|
@Component
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/jobHandler/FmsPushDataJob.class */
|
public class FmsPushDataJob {
|
private static final Logger log = LoggerFactory.getLogger(FmsPushDataJob.class);
|
private final FmsVisualDataMessageHandler fmsVisualDataMessageHandler;
|
|
public FmsPushDataJob(final FmsVisualDataMessageHandler fmsVisualDataMessageHandler) {
|
this.fmsVisualDataMessageHandler = fmsVisualDataMessageHandler;
|
}
|
|
@XxlJob("fmsPushDataJob")
|
public ReturnT<String> fmsPushDataJobHandler(String param) throws Exception {
|
XxlJobLogger.log("XXL-JOB, 更新工位等待日历定时任务,构建开始.....", new Object[0]);
|
this.fmsVisualDataMessageHandler.pushData();
|
XxlJobLogger.log("XXL-JOB, 更新工位等待日历定时任务,构建结束", new Object[0]);
|
return ReturnT.SUCCESS;
|
}
|
}
|