Procházet zdrojové kódy

调整溯源导出时间校验-由30天改为365天

liuyaowen před 9 měsíci
rodič
revize
d11f095e3e

+ 2 - 3
src/main/java/com/yunfeiyun/agmp/tss/util/ExportUtil.java

@@ -26,10 +26,9 @@ public class ExportUtil {
         } catch (BizException e) {
             throw new BizException(ErrorCode.INVALID_PARAMETER.getCode(), "时间参数异常");
         }
-
         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(), "导出时间请勿超过一");
         }
     }
 }