2019-07-10 13:32
public Page statisticsList(Integer pageNumber, Integer pageSize, Kv cond) {
Page page = getPage(pageNumber, pageSize, cond, adpageDao, "mariketing.statisticsList");
List list = page.getList();
ArrayList arrayList = new ArrayList<>();
for (Adpage adpage : list) {
String json = JsonKit.toJson(adpage);
Map map = (Map) JSON.parse(json);
String countStr = (String) map.get("count");
if (StrKit.isBlank(countStr)) {
countStr = "{}";
}
OpenCount openCount = JSON.parseObject(countStr, OpenCount.class);
map.put("count", openCount);
arrayList.add(map);
}
Page page2 = new Page(arrayList, page.getPageNumber(), page.getPageSize(), page.getTotalPage(), page.getTotalRow());
return page2;
}
2019-07-10 10:45
@JFinal 谢谢您的回答,想请问一下。如果配置了me.setJsonFactory(new FastJsonFactory())会不会对原先的代码造成影响。