package com.qianwen.smartman.modules.tpm.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.modules.tpm.service.IMaintainPlanService;
|
import org.springframework.stereotype.Component;
|
|
@Component
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/tpm/jobHandler/MaintainPlanJob.class */
|
public class MaintainPlanJob {
|
private static final Logger log = LoggerFactory.getLogger(MaintainPlanJob.class);
|
private final IMaintainPlanService maintainPlanService;
|
|
public MaintainPlanJob(final IMaintainPlanService maintainPlanService) {
|
this.maintainPlanService = maintainPlanService;
|
}
|
|
@XxlJob("maintainPlanJobHandler")
|
public ReturnT<String> maintainPlanJobHandler(String param) throws Exception {
|
XxlJobLogger.log("XXL-JOB, 更新保养计划定时任务,构建开始.....", new Object[0]);
|
this.maintainPlanService.changePlanStatus();
|
XxlJobLogger.log("XXL-JOB, 更新保养计划定时任务,构建结束", new Object[0]);
|
return ReturnT.SUCCESS;
|
}
|
}
|