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;
|
}
|
}
|