获取上一周的开始时间和结束时间(周一到周日)
//获取上周开始日期和结束日期
// LocalDate now = LocalDate.now();
LocalDate now = LocalDate.of(2022,1,5);
LocalDate minusWeeks = now.minusWeeks(1);
DayOfWeek dayOfWeek = minusWeeks.getDayOfWeek();
LocalDate end = now.minusDays(dayOfWeek.getValue());
LocalDate start = now.minusDays(6+dayOfWeek.getValue());
System.out.println(start+"~"+end);