浏览代码

tijiao1daoma1

Lijy 6 月之前
父节点
当前提交
d96c19ae2b

+ 1 - 1
fhKeeper/formulahousekeeper/management-platform/src/main/java/com/management/platform/controller/ReportController.java

@@ -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;