使用场景 springboot easyUI
想要的结果
easyui的datagrid有showfooter属性,设置为true,后台在查询完数据后查询合计的数量,返回的数据添加footer
Map<String, Object> data = New.map();
data.put("total",pagedData.getTotal());//list的大小
data.put("rows",dataList);//java的一个list集合
data.put("footer",list);//返回的footer数据是一个list形式
return data;