|
|
|
|
@ -17,6 +17,8 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.scheduling.annotation.Scheduled; |
|
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
|
|
import java.text.ParseException; |
|
|
|
|
import java.text.SimpleDateFormat; |
|
|
|
|
import java.time.LocalDate; |
|
|
|
|
import java.time.LocalDateTime; |
|
|
|
|
import java.time.Month; |
|
|
|
|
@ -117,11 +119,15 @@ public class Job {
|
|
|
|
|
// 每天一次 23:30:00
|
|
|
|
|
//todo 维权信息
|
|
|
|
|
@Scheduled(cron = "0 30 23 * * ?") |
|
|
|
|
public void rights() { |
|
|
|
|
public void rights() throws ParseException { |
|
|
|
|
log.info("rights--------------------"); |
|
|
|
|
log.info("维权信息抓取中---------------------"); |
|
|
|
|
// 维权
|
|
|
|
|
List<DwdAsjZfbaShrxx2> shrxxList = dwdAsjZfbaShrxx2Service.listAll(); |
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
|
Date startTime = sdf.parse("2025-01-01 00:00:00"); |
|
|
|
|
Date endTime = sdf.parse("2025-12-30 00:00:00"); |
|
|
|
|
|
|
|
|
|
List<DwdAsjZfbaShrxx2> shrxxList = dwdAsjZfbaShrxx2Service.list(startTime,endTime); |
|
|
|
|
log.info("数据:{}条", shrxxList.size()); |
|
|
|
|
shrxxList.forEach(item -> { |
|
|
|
|
RpcApplySupervise rpcApply = new RpcApplySupervise(); |
|
|
|
|
|