2019-07-10 13:33

@牛打下 如果我的service把model转成Map就不会出现死循环的问题。

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 13:11

好的,感谢詹总

2019-07-10 10:45

@JFinal 谢谢您的回答,想请问一下。如果配置了me.setJsonFactory(new FastJsonFactory())会不会对原先的代码造成影响。

2019-06-27 17:05

model.remove("password"); 就可以了,,打扰了各位大佬