|
|
@ -61,7 +61,8 @@ public class StatsUserServiceImpl implements StatsUserService { |
|
|
|
//1.初始化时间参数
|
|
|
|
Calendar calendar = Calendar.getInstance(); |
|
|
|
calendar.setTime(new Date()); |
|
|
|
//获取今日的零点
|
|
|
|
//获取当日的零点
|
|
|
|
calendar.add(Calendar.DATE, NumConstant.ONE_NEG); |
|
|
|
calendar.set(Calendar.HOUR_OF_DAY, 0); |
|
|
|
calendar.set(Calendar.MINUTE, 0); |
|
|
|
calendar.set(Calendar.SECOND, 0); |
|
|
@ -71,7 +72,7 @@ public class StatsUserServiceImpl implements StatsUserService { |
|
|
|
|
|
|
|
//3.初始化机关维度
|
|
|
|
List<AgencySubTreeDto> agencies = dimAgencyService.getAllAgency(customerId); |
|
|
|
List<AgencySubTreeDto> topAgencies = dimAgencyService.getTopAgency(customerId); |
|
|
|
//List<AgencySubTreeDto> topAgencies = dimAgencyService.getTopAgency(customerId);
|
|
|
|
|
|
|
|
//4.计算机关统计数据、生成唯一性统计数据
|
|
|
|
UserStatisticalData agencyData = userService.traverseAgencyUser(agencies,date,timeDimension); |
|
|
|