mitao
2025-02-24 17bd0962b7caba32f35d29a1082e7c998342e65d
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()
    }
}