| | |
| | | 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(); |
| | | } |
| | | } |
| | | //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(); |
| | | // } |
| | | //} |