|
@@ -26,10 +26,9 @@ public class ExportUtil {
|
|
|
} catch (BizException e) {
|
|
} catch (BizException e) {
|
|
|
throw new BizException(ErrorCode.INVALID_PARAMETER.getCode(), "时间参数异常");
|
|
throw new BizException(ErrorCode.INVALID_PARAMETER.getCode(), "时间参数异常");
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
long until = startTime.until(endTime, ChronoUnit.DAYS);
|
|
long until = startTime.until(endTime, ChronoUnit.DAYS);
|
|
|
- if (until > 30) {
|
|
|
|
|
- throw new BizException(ErrorCode.INVALID_PARAMETER.getCode(), "导出时间请勿超过一个月");
|
|
|
|
|
|
|
+ if (until > 365) {
|
|
|
|
|
+ throw new BizException(ErrorCode.INVALID_PARAMETER.getCode(), "导出时间请勿超过一年");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|