用户行为统计,用户和IP列表只展示TOP10,查询条件中原下拉列表框改为搜索框
This commit is contained in:
@@ -102,6 +102,28 @@ public class TrafficStatisticsReportController extends BaseController {
|
||||
Map map = (Map) list.get(0);
|
||||
List nasIpList=(List) map.get("nasIpList");
|
||||
List accountList=(List) map.get("accountList");
|
||||
if (!StringUtil.isEmpty(nasIpList)&&nasIpList.size()>0) {
|
||||
List newNasIpList = new ArrayList();
|
||||
for (int i = 0; i < nasIpList.size(); i++) {
|
||||
newNasIpList.add(nasIpList.get(i));
|
||||
if (i+1>=10) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
nasIpList = newNasIpList;
|
||||
}
|
||||
if (!StringUtil.isEmpty(accountList)&&accountList.size()>0) {
|
||||
List newAccountList = new ArrayList();
|
||||
for (int i = 0; i < accountList.size(); i++) {
|
||||
newAccountList.add(accountList.get(i));
|
||||
if (i+1>=10) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
accountList = newAccountList;
|
||||
}
|
||||
System.out.println("-------------------:"+nasIpList.size()+"+++"+accountList.size()+"==================");
|
||||
model.addAttribute("nasIpList", nasIpList);
|
||||
model.addAttribute("accountList", accountList);
|
||||
if(StringUtil.isBlank(account)&&accountList!=null&&accountList.size()>0&&!"3".equals(searchBusinessType)) {
|
||||
|
||||
@@ -210,20 +210,24 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="pull-left accountSearch">
|
||||
<form:select path="account" class="selectpicker select2 input-medium" data-live-search="true" data-live-search-placeholder="search">
|
||||
<!--<form:select path="account" class="selectpicker select2 input-medium" data-live-search="true" data-live-search-placeholder="search">
|
||||
<form:option value=""><spring:message code="select"/> <spring:message code="user"/></form:option>
|
||||
<c:forEach items="${accountList}" var="acc" >
|
||||
<form:option value="${acc.account}">${acc.account}</form:option>
|
||||
</c:forEach>
|
||||
</form:select>
|
||||
</form:select>-->
|
||||
|
||||
<form:input path="account" class="form-control"/>
|
||||
</div>
|
||||
<div class="pull-left nasIpSearch">
|
||||
<form:select path="nasIp" class="selectpicker select2 input-medium" data-live-search="true" data-live-search-placeholder="search">
|
||||
<!--<form:select path="nasIp" class="selectpicker select2 input-medium" data-live-search="true" data-live-search-placeholder="search">
|
||||
<form:option value=""><spring:message code="select"/> <spring:message code="ip"/></form:option>
|
||||
<c:forEach items="${nasIpList}" var="nIp">
|
||||
<form:option value="${nIp.nasIp}" >${nIp.nasIp}</form:option>
|
||||
</c:forEach>
|
||||
</form:select>
|
||||
</form:select>-->
|
||||
|
||||
<form:input path="nasIp" class="form-control"/>
|
||||
</div>
|
||||
<div class="pull-left">
|
||||
<button type="button" class="btn blue" onClick="return searchList()"> <i class="fa fa-search"></i> <spring:message code="search"/> </button>
|
||||
|
||||
Reference in New Issue
Block a user