diff --git a/src/main/java/com/nis/util/Constants.java b/src/main/java/com/nis/util/Constants.java index 69b335728..ef679aad1 100644 --- a/src/main/java/com/nis/util/Constants.java +++ b/src/main/java/com/nis/util/Constants.java @@ -769,4 +769,10 @@ public final class Constants { public static final String NTC_COLLECT_RADIUS_LOG =Configurations.getStringProperty("ntcCollectRadiusLog",""); public static final String NTC_CONN_RECORD_LOG =Configurations.getStringProperty("ntcConnRecordLog",""); public static final String NTC_CONN_RECORD_PERCENT =Configurations.getStringProperty("ntcConnRecordPercent",""); + + /** + * 每次最大导出条数 + */ + public static final int MAX_LOG_EXPORT_SIZE = Configurations.getIntProperty("maxLogExportSize", 100000); + } diff --git a/src/main/java/com/nis/web/controller/log/ntc/NtcCollectRadiusLogController.java b/src/main/java/com/nis/web/controller/log/ntc/NtcCollectRadiusLogController.java index 9e1b19dc5..cfe4e5a9a 100644 --- a/src/main/java/com/nis/web/controller/log/ntc/NtcCollectRadiusLogController.java +++ b/src/main/java/com/nis/web/controller/log/ntc/NtcCollectRadiusLogController.java @@ -90,7 +90,7 @@ public class NtcCollectRadiusLogController extends BaseController { //--------------------------- PageLog page = new PageLog(request, response); page.setPageNo(1); - page.setPageSize(Constants.MAX_EXPORT_SIZE); + page.setPageSize(Constants.MAX_LOG_EXPORT_SIZE); Map params = new HashMap(); params.put("pageSize", page.getPageSize()); params.put("pageNo", page.getPageNo()); diff --git a/src/main/resources/nis.properties b/src/main/resources/nis.properties index ff0e72a44..e1b80564f 100644 --- a/src/main/resources/nis.properties +++ b/src/main/resources/nis.properties @@ -585,4 +585,6 @@ dns_spoofing_ip_ip=1.1.1.1 trafficBandwidthTransTwo=trafficBandwidthTransTwo ntcCollectRadiusLog=ntcCollectRadiusLogs ntcConnRecordLog=ntcConnRecordLogs -ntcConnRecordPercent=ntcConnRecordPercent \ No newline at end of file +ntcConnRecordPercent=ntcConnRecordPercent +#\u5BFC\u51FA\u6700\u5927\u6761\u6570 +maxLogExportSize=2000 \ No newline at end of file