工单定时任务初始化

This commit is contained in:
lujiang 2024-08-13 16:03:55 +08:00
parent 99518ef1fa
commit 03f42ca89e

View File

@ -0,0 +1,35 @@
package com.ics.quartz.task;
import com.ics.admin.service.IRepairService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* created at 2024-8-13 14:11
*
* @author lujiang
* @version 1.0.0
* @since 1.0.0
*/
@Slf4j
@Component("repairTask")
public class RepairTask {
@Autowired
private IRepairService repairService;
/**
* 工单超时预警
*/
public void repairTimeOut(){
System.out.println("========come on time out=========");
}
/**
* 工单完成7天后未评价 自动好评
*/
public void repairGoodEval() {
System.out.println("========come on give me five=========");
}
}