radius导出条数限制添加

This commit is contained in:
leijun
2018-12-15 23:43:43 +08:00
parent 7777cd2fe7
commit ed1f41a50f
3 changed files with 10 additions and 2 deletions

View File

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

View File

@@ -90,7 +90,7 @@ public class NtcCollectRadiusLogController extends BaseController {
//---------------------------
PageLog<NtcCollectRadiusLog> page = new PageLog<NtcCollectRadiusLog>(request, response);
page.setPageNo(1);
page.setPageSize(Constants.MAX_EXPORT_SIZE);
page.setPageSize(Constants.MAX_LOG_EXPORT_SIZE);
Map<String, Object> params = new HashMap<String, Object>();
params.put("pageSize", page.getPageSize());
params.put("pageNo", page.getPageNo());

View File

@@ -585,4 +585,6 @@ dns_spoofing_ip_ip=1.1.1.1
trafficBandwidthTransTwo=trafficBandwidthTransTwo
ntcCollectRadiusLog=ntcCollectRadiusLogs
ntcConnRecordLog=ntcConnRecordLogs
ntcConnRecordPercent=ntcConnRecordPercent
ntcConnRecordPercent=ntcConnRecordPercent
#\u5BFC\u51FA\u6700\u5927\u6761\u6570
maxLogExportSize=2000