yangys
2024-03-27 e48aa2ac8dea1be5db11c63edf0b912c4ad5ce65
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.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.modules.cps.service.IWorkstationService;
import org.springframework.stereotype.Component;
 
@Component
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/jobHandler/WorkstationCalendarUpdateJob.class */
public class WorkstationCalendarUpdateJob {
    private static final Logger log = LoggerFactory.getLogger(WorkstationCalendarUpdateJob.class);
    private final IWorkstationService workstationService;
 
    public WorkstationCalendarUpdateJob(final IWorkstationService workstationService) {
        this.workstationService = workstationService;
    }
 
    @XxlJob("workstationCalendarJobHandler")
    public ReturnT<String> workstationCalendarJobHandler(String param) throws Exception {
        XxlJobLogger.log("XXL-JOB, 更新工位等待日历定时任务,构建开始.....", new Object[0]);
        this.workstationService.updateWorkstationCalendar();
        XxlJobLogger.log("XXL-JOB, 更新工位等待日历定时任务,构建结束", new Object[0]);
        return ReturnT.SUCCESS;
    }
}