测试页面修改
This commit is contained in:
@@ -10,6 +10,8 @@ package com.nis.domain.log;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import com.nis.domain.BaseEntity;
|
||||
|
||||
/**
|
||||
* @ClassName: SearchReport.java
|
||||
* @Description: TODO
|
||||
@@ -17,7 +19,17 @@ import java.util.HashMap;
|
||||
* @date 2018年7月5日 下午12:30:44
|
||||
* @version V1.0
|
||||
*/
|
||||
public class SearchReport {
|
||||
public class SearchReport extends BaseEntity<SearchReport>{
|
||||
/**
|
||||
* @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么)
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
private Integer functionId;
|
||||
private String cfgName;
|
||||
private Integer action;
|
||||
private String searchBusinessType;
|
||||
private String searchReportStartTime;
|
||||
private String searchReportEndTime;
|
||||
@@ -25,6 +37,48 @@ public class SearchReport {
|
||||
private HashMap<String,Object> searchCondition;
|
||||
public static final String searchConditionSplitor=",";
|
||||
public int searchConditionLimit;
|
||||
/**
|
||||
* functionId
|
||||
* @return functionId
|
||||
*/
|
||||
|
||||
public Integer getFunctionId() {
|
||||
return functionId;
|
||||
}
|
||||
/**
|
||||
* @param functionId the functionId to set
|
||||
*/
|
||||
public void setFunctionId(Integer functionId) {
|
||||
this.functionId = functionId;
|
||||
}
|
||||
/**
|
||||
* cfgName
|
||||
* @return cfgName
|
||||
*/
|
||||
|
||||
public String getCfgName() {
|
||||
return cfgName;
|
||||
}
|
||||
/**
|
||||
* @param cfgName the cfgName to set
|
||||
*/
|
||||
public void setCfgName(String cfgName) {
|
||||
this.cfgName = cfgName;
|
||||
}
|
||||
/**
|
||||
* action
|
||||
* @return action
|
||||
*/
|
||||
|
||||
public Integer getAction() {
|
||||
return action;
|
||||
}
|
||||
/**
|
||||
* @param action the action to set
|
||||
*/
|
||||
public void setAction(Integer action) {
|
||||
this.action = action;
|
||||
}
|
||||
/**
|
||||
* searchBusinessType
|
||||
* @return searchBusinessType
|
||||
|
||||
29
src/main/java/com/nis/web/controller/report/TestBean.java
Normal file
29
src/main/java/com/nis/web/controller/report/TestBean.java
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
*@Title: TestBean.java
|
||||
*@Package com.nis.web.controller.report
|
||||
*@Description TODO
|
||||
*@author dell
|
||||
*@date 2018年7月6日 上午9:20:48
|
||||
*@version 版本号
|
||||
*/
|
||||
package com.nis.web.controller.report;
|
||||
|
||||
import com.nis.domain.log.BaseReportLog;
|
||||
|
||||
/**
|
||||
* @ClassName: TestBean.java
|
||||
* @Description: TODO
|
||||
* @author (dell)
|
||||
* @date 2018年7月6日 上午9:20:48
|
||||
* @version V1.0
|
||||
*/
|
||||
public class TestBean extends BaseReportLog<TestBean> {
|
||||
|
||||
/**
|
||||
* @Fields serialVersionUID:TODO(用一句话描述这个变量表示什么)
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
|
||||
private static final long serialVersionUID = -8794587413327741665L;
|
||||
}
|
||||
@@ -11,10 +11,8 @@ import org.springframework.ui.Model;
|
||||
import org.springframework.web.bind.annotation.ModelAttribute;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import com.mysql.fabric.xmlrpc.base.Array;
|
||||
import com.nis.domain.Page;
|
||||
import com.nis.domain.configuration.IpPortCfg;
|
||||
import com.nis.domain.log.NtcDnsLog;
|
||||
import com.nis.domain.log.SearchReport;
|
||||
import com.nis.web.controller.BaseController;
|
||||
|
||||
@Controller
|
||||
@@ -22,12 +20,13 @@ import com.nis.web.controller.BaseController;
|
||||
public class TestController extends BaseController {
|
||||
|
||||
@RequestMapping("list")
|
||||
public String list(@ModelAttribute("cfg") IpPortCfg cfg,Model model, HttpServletRequest request, HttpServletResponse response) {
|
||||
Page<IpPortCfg> page=new Page<IpPortCfg>(request, response);
|
||||
List<IpPortCfg> list=new ArrayList();
|
||||
list.add(new IpPortCfg());
|
||||
public String list(@ModelAttribute("bean") SearchReport bean,Model model, HttpServletRequest request, HttpServletResponse response) {
|
||||
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 "/report/test";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user