mitao
2025-02-26 b37f92c1f5bea036b13af38d82a0fa9ca690eb3b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.panzhihua.sangeshenbian.scheduled;
 
import com.panzhihua.sangeshenbian.service.IComplaintService;
import lombok.RequiredArgsConstructor;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
 
@Component
@RequiredArgsConstructor
public class ComplaintTasks {
    private final IComplaintService complaintService;
 
    /**
     * 诉求超时处理
     */
    @Scheduled(fixedRate = 60000)
    public void complaintTimeout() {
        complaintService.list();
    }
}