|
@@ -1606,11 +1606,11 @@ public class ReportController {
|
|
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
|
|
LocalDate start = LocalDate.parse(startDate, dateTimeFormatter);
|
|
LocalDate start = LocalDate.parse(startDate, dateTimeFormatter);
|
|
LocalDate end = LocalDate.parse(endDate, dateTimeFormatter);
|
|
LocalDate end = LocalDate.parse(endDate, dateTimeFormatter);
|
|
- if (start.until(end, ChronoUnit.DAYS) > 365) {
|
|
|
|
- HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
|
|
- httpRespMsg.setError("导出日报时间间隔不得超过1年");
|
|
|
|
- return httpRespMsg;
|
|
|
|
- }
|
|
|
|
|
|
+// if (start.until(end, ChronoUnit.DAYS) > 365) {
|
|
|
|
+// HttpRespMsg httpRespMsg = new HttpRespMsg();
|
|
|
|
+// httpRespMsg.setError("导出日报时间间隔不得超过1年");
|
|
|
|
+// return httpRespMsg;
|
|
|
|
+// }
|
|
|
|
|
|
return reportService.exportReport(startDate, endDate, planId,stateKey,deptIds, request);
|
|
return reportService.exportReport(startDate, endDate, planId,stateKey,deptIds, request);
|
|
}
|
|
}
|