Commit 43e84720 authored by 赵啸非's avatar 赵啸非

修改用户列表同步

parent 54d128db
...@@ -30,4 +30,6 @@ public class StatVo extends BaseEntityLong { ...@@ -30,4 +30,6 @@ public class StatVo extends BaseEntityLong {
/** 结束 评价时间 */ /** 结束 评价时间 */
private String timeEnd; private String timeEnd;
private Long accessId;
} }
\ No newline at end of file
...@@ -98,8 +98,10 @@ public class StatController extends BaseCRUDJsonBodyMappingController<StatServic ...@@ -98,8 +98,10 @@ public class StatController extends BaseCRUDJsonBodyMappingController<StatServic
DateTime attendStart = DateUtil.parseDate(query.getCreateTimeStart()); DateTime attendStart = DateUtil.parseDate(query.getCreateTimeStart());
DateTime attendEnd = DateUtil.parseDate(query.getCreateTimeEnd()); DateTime attendEnd = DateUtil.parseDate(query.getCreateTimeEnd());
Long compare = DateUtil.between(attendEnd, attendStart, DateUnit.DAY); Long compare = DateUtil.between(attendEnd, attendStart, DateUnit.DAY);
AccessQuery accessQuery = new AccessQuery();
accessQuery.setId(query.getAccessId());
log.info("计算天数区间:{}", compare); log.info("计算天数区间:{}", compare);
List<SitePdu> statSiteList = accessService.getStatSiteList(new AccessQuery()); List<SitePdu> statSiteList = accessService.getStatSiteList(accessQuery);
for (SitePdu site : statSiteList) { for (SitePdu site : statSiteList) {
StatThread statThread = new StatThread(attendStart, compare, site, context, Arrays.asList(StatTypeEnum.STAT_ALL.getValue())); StatThread statThread = new StatThread(attendStart, compare, site, context, Arrays.asList(StatTypeEnum.STAT_ALL.getValue()));
ThreadPool.getInstance().execute(statThread); ThreadPool.getInstance().execute(statThread);
......
...@@ -80,6 +80,17 @@ Content-Type: application/json ...@@ -80,6 +80,17 @@ Content-Type: application/json
} }
###针对某一接入
POST {{baseUrl}}/access/stat
Content-Type: application/json
{
"accessTimeStart": "2023-01-01",
"accessTimeEnd": "2024-08-22",
"id": 17
}
......
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