package cn.iocoder.yudao.module.mes.job.pro.task;
|
|
import cn.iocoder.yudao.module.mes.service.pro.task.MesProTaskWaitRemindService;
|
import jakarta.annotation.Resource;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springframework.scheduling.annotation.Scheduled;
|
import org.springframework.stereotype.Component;
|
|
/**
|
* MES 生产任务报工倒计时提醒定时任务
|
*
|
* <p>每分钟扫描一次,按三个等级(剩余 10 分钟 / 5 分钟 / 结束)发送站内信提醒
|
*
|
* @author 超级管理员
|
*/
|
@Slf4j
|
@Component
|
public class MesProTaskWaitRemindJob {
|
|
@Resource
|
private MesProTaskWaitRemindService waitRemindService;
|
|
@Scheduled(cron = "0 * * * * ?")
|
public void execute() {
|
waitRemindService.sendWaitRemind();
|
}
|
|
}
|