Commit 1c49a837 authored by 赵啸非's avatar 赵啸非

添加首页统计模块 统计近一周

parent cfe0acba
...@@ -61,7 +61,7 @@ public class SiteStatTaskImpl implements ITaskExcuteService { ...@@ -61,7 +61,7 @@ public class SiteStatTaskImpl implements ITaskExcuteService {
Rest<RespData<List<SitePdu>>> resp = siteFeign.list(sitePdu); Rest<RespData<List<SitePdu>>> resp = siteFeign.list(sitePdu);
if (resp.getCode() == 1) { if (resp.getCode() == 1) {
List<SitePdu> sitePduList = resp.getData().getData(); List<SitePdu> sitePduList = resp.getData().getData();
sitePduList.stream().forEach(site -> { for (SitePdu site : sitePduList) {
PjEvaluateStatEntity sitestatEntity = new PjEvaluateStatEntity(); PjEvaluateStatEntity sitestatEntity = new PjEvaluateStatEntity();
sitestatEntity.initAttrValue(); sitestatEntity.initAttrValue();
...@@ -87,7 +87,7 @@ public class SiteStatTaskImpl implements ITaskExcuteService { ...@@ -87,7 +87,7 @@ public class SiteStatTaskImpl implements ITaskExcuteService {
sitestatEntity.setDay(day); sitestatEntity.setDay(day);
phQueueStatService.updateSitePhStat(phQueueStatEntity, null); phQueueStatService.updateSitePhStat(phQueueStatEntity, null);
}); }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment