|
@@ -242,7 +242,7 @@ public class ReportController {
|
|
|
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
|
LocalDate start = LocalDate.parse(startDate, dateTimeFormatter);
|
|
|
LocalDate end = LocalDate.parse(endDate, dateTimeFormatter);
|
|
|
- if (start.until(end, ChronoUnit.DAYS) > 365) {
|
|
|
+ if (projectId==null&&start.until(end, ChronoUnit.DAYS) > 365) {
|
|
|
HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
|
httpRespMsg.setError("导出日报时间间隔不得超过1年");
|
|
|
return httpRespMsg;
|