|
请问下:
public void datagrid(JeecgMinidaoEntity jeecgMinidao,HttpServletRequest request, HttpServletResponse response, DataGrid dataGrid) {
List<JeecgMinidaoEntity> list = jeecgMinidaoService.listAll(jeecgMinidao, dataGrid.getPage(), dataGrid.getRows());
Integer count = jeecgMinidaoService.getCount();
dataGrid.setTotal(count);
dataGrid.setResults(list);
String total_salary = String.valueOf(jeecgMinidaoService.getSumSalary());
/*
* 说明:格式为 字段名:值(可选,不写该值时为分页数据的合计) 多个合计 以 , 分割
*/
dataGrid.setFooter("salary:"+(total_salary.equalsIgnoreCase("null")?"0.0":total_salary)+",age,email:合计");
TagUtil.datagrid(response, dataGrid);
}
我打断点进这个方法时,查询输入的值已放到jeecgminidao中,这个是靠什么来设值的啊!JSON中传进来时,并没有指定哪个实体内接收啊!
|
|