zhuguifei
2025-04-28 442928123f63ee497d766f9a7a14f0a6ee067e25
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
29
30
31
32
33
34
35
36
37
38
39
40
41
package org.jeecg.modules.lims.handler;
 
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.annotation.XxlJob;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.lims.mapper.LimsInstrumentMapper;
import org.jeecg.modules.lims.service.ILimsInstrumentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
 
@Slf4j
@Component
public class JobHandler {
 
    @Autowired
    ILimsInstrumentService instrumentService;
 
    @XxlJob(value = "resetInspection")
    public ReturnT<String> resetInspection(String params) {
        log.info("重置定时任务执行》》》》》》》》》》》》》》。。。。");
        instrumentService.resetInspection();
        return ReturnT.SUCCESS;
    }
 
    //每天0点重置正在运行的机台的状态为空闲
    @XxlJob(value = "resetInstrument")
    public ReturnT<String> resetInstrument(String params) {
        log.info("重置正在运行的机台的状态为空闲》》》》》》》》》》》》》》。。。。");
        instrumentService.resetInstrument();
        return ReturnT.SUCCESS;
    }
 
 
    //每天0点重置长时间申请使用设备审批状态为超时
    @XxlJob(value = "resetAudit")
    public ReturnT<String> resetAudit(String params) {
        log.info("重置正在申请使用设备审批状态为超时》》》》》》》》》》》》》》。。。。");
        instrumentService.resetAudit();
        return ReturnT.SUCCESS;
    }
}