|
miniDao方式获取数据,但是datagrid的dgOpenOpt和dgDelOpt列无法显示?是什么原因造成的
取数据代码如下:
@RequestMapping(params = "datagrid")
public void datagrid(HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
/**miniDao方式获取数据**/
String sbSn="",sbMc="";
if(request.getParameter("sbSn")!=null&&request.getParameter("sbSn")!="")
{
sbSn=request.getParameter("sbSn");
}
if(request.getParameter("sbMc")!=null&&request.getParameter("sbMc")!="")
{
sbMc=request.getParameter("sbMc");
}
//System.out.println(sbSn);
List<Map<String,Object>> maplist=dqjlsjMimidaoDao.getYLSJ(dataGrid.getPage(), dataGrid.getRows(),sbSn,sbMc);
Integer count = dqjlsjMimidaoDao.getCount();
dataGrid.setTotal(count);
dataGrid.setResults(maplist);
TagUtil.datagrid(response, dataGrid);
}
|
|