yangys
2024-04-04 ed4a5236bab800094be4a8378f5098eebe3de6ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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;
    }
}