Explorar o código

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

liuyaowen hai 9 meses
pai
achega
d11f095e3e
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      src/main/java/com/yunfeiyun/agmp/tss/util/ExportUtil.java

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

@@ -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(), "导出时间请勿超过一");
         }
         }
     }
     }
 }
 }