日志字段增加排序
This commit is contained in:
@@ -41,7 +41,15 @@ public class BaseLogEntity<T> extends BaseEntity<T> {
|
||||
protected String searchFoundEndTime;//结束时间,格式同上
|
||||
|
||||
protected String isLogTotalSearch;//由配置列表点击日志总量进行查询的标识
|
||||
protected String orderBy;//排序参数
|
||||
|
||||
|
||||
public String getOrderBy() {
|
||||
return orderBy;
|
||||
}
|
||||
public void setOrderBy(String orderBy) {
|
||||
this.orderBy = orderBy;
|
||||
}
|
||||
public String getFoundTime() {
|
||||
return foundTime;
|
||||
}
|
||||
|
||||
@@ -823,6 +823,9 @@ public class BaseController {
|
||||
if (entry.getCfgId() != null) {
|
||||
params.put("searchCfgId", entry.getCfgId());
|
||||
}
|
||||
if (entry.getOrderBy() != null&&entry.getOrderBy()!="") {
|
||||
params.put("orderBy", entry.getOrderBy());
|
||||
}
|
||||
}
|
||||
|
||||
public List<BaseStringCfg<?>> checkStringCfg(FunctionServiceDict serviceDict, FunctionRegionDict regionDict,
|
||||
|
||||
@@ -20,13 +20,17 @@ import com.google.gson.Gson;
|
||||
import com.google.gson.GsonBuilder;
|
||||
import com.google.gson.reflect.TypeToken;
|
||||
import com.nis.domain.FunctionServiceDict;
|
||||
import com.nis.domain.Page;
|
||||
import com.nis.domain.PageLog;
|
||||
import com.nis.domain.configuration.RequestInfo;
|
||||
import com.nis.domain.log.NtcIpLog;
|
||||
import com.nis.domain.log.SearchReport;
|
||||
import com.nis.domain.maat.LogRecvData;
|
||||
import com.nis.util.Constants;
|
||||
import com.nis.util.DictUtils;
|
||||
import com.nis.util.httpclient.HttpClientUtil;
|
||||
import com.nis.web.controller.BaseController;
|
||||
import com.nis.web.controller.report.TestBean;
|
||||
|
||||
@Controller
|
||||
@RequestMapping("${adminPath}/dashboard/traffic")
|
||||
@@ -107,5 +111,17 @@ public class TrafficStatisticsInfoController extends BaseController {
|
||||
}
|
||||
return m;
|
||||
}
|
||||
|
||||
@RequestMapping("userBehavior")
|
||||
public String list(@ModelAttribute("bean") SearchReport bean,Model model, HttpServletRequest request, HttpServletResponse response) {
|
||||
|
||||
List<RequestInfo> requestInfos = requestInfoService.getAllRequestInfo();
|
||||
model.addAttribute("requestInfos", requestInfos);
|
||||
Page<TestBean> page=new Page<TestBean>(request, response);
|
||||
List<TestBean> list=new ArrayList<>();
|
||||
list.add(new TestBean());
|
||||
page.setList(list);
|
||||
model.addAttribute("page", page);
|
||||
model.addAttribute("bean", bean);
|
||||
return "/dashboard/trafficUserBehavior";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user