提交 ca527d0b 编写于 作者: F fengyw

增加注册人数的统计

上级 e9a91c7f
......@@ -31,7 +31,7 @@ public class AdminStatBiz extends BaseBiz {
AdminStatLoginResp resp = new AdminStatLoginResp();
List<AdminStatLogin> respList = logLoginDao.statByDate(dates);
if (CollUtil.isNotEmpty(respList)) {
resp.setDateList(respList.stream().distinct().map(AdminStatLogin::getDates).collect(Collectors.toList()));
resp.setDateList(respList.stream().map(AdminStatLogin::getDates).distinct().collect(Collectors.toList()));
Map<String, Long> loginMap = respList.stream().filter(s -> s.getLoginStatus().equals(1)).collect(Collectors.toMap(s -> s.getDates(), s -> s.getLogins()));
Map<String, Long> registerMap = respList.stream().filter(s -> s.getLoginStatus().equals(2)).collect(Collectors.toMap(s -> s.getDates(), s -> s.getLogins()));
List<Long> loginList = new ArrayList<>();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册