@ -134,11 +134,11 @@ public class Job {
log . info ( "维权信息抓取中---------------------" ) ;
log . info ( "维权信息抓取中---------------------" ) ;
// 维权
// 维权
SimpleDateFormat sdf = new SimpleDateFormat ( "yyyy-MM-dd HH:mm:ss" ) ;
SimpleDateFormat sdf = new SimpleDateFormat ( "yyyy-MM-dd HH:mm:ss" ) ;
// Date startTime = sdf.parse("2025-01-01 00:00:00");
Date startTime = sdf . parse ( "2025-01-01 00:00:00" ) ;
// Date endTime = sdf.parse("2025-12-30 00:00:00");
Date endTime = sdf . parse ( "2025-12-30 00:00:00" ) ;
Date startTime = Date . from ( LocalDateTime . now ( ) . minusDays ( 1 ) . withHour ( 0 ) . withMinute ( 0 ) . withSecond ( 0 ) . withNano ( 0 ) . atZone ( ZoneId . systemDefault ( ) ) . toInstant ( ) ) ;
// Date startTime = Date.from(LocalDateTime.now().minusDays(1).withHour(0).withMinute(0).withSecond(0).withNano(0).atZone(ZoneId.systemDefault()).toInstant());
Date endTime = Date . from ( LocalDateTime . now ( ) . minusDays ( 1 ) . withHour ( 23 ) . withMinute ( 59 ) . withSecond ( 59 ) . atZone ( ZoneId . systemDefault ( ) ) . toInstant ( ) ) ;
// Date endTime = Date.from(LocalDateTime.now().minusDays(1).withHour(23).withMinute(59).withSecond(59).atZone(ZoneId.systemDefault()).toInstant());
//获取过滤关键字
//获取过滤关键字