...
|
...
|
@@ -815,18 +815,20 @@ public class UnionServiceImpl implements IUnionService,ApplicationEventPublisher |
|
|
int endTime = beginTime+3600*24-1;
|
|
|
activateDeviceIdReqBO.setActivateHourBegin(beginTime);
|
|
|
activateDeviceIdReqBO.setActivateHourEnd(endTime);
|
|
|
//查询出一个渠道一天的激活数
|
|
|
//2.查询出一个渠道一天的激活数
|
|
|
List<UnionLogs> unionLogs = unionLogsDAO.selectListByHour(activateDeviceIdReqBO);
|
|
|
|
|
|
for(int i=0;i<unionLogs.size();i++){
|
|
|
UnionLogs unionLog = unionLogs.get(i);
|
|
|
String createTime = DateUtils.int2DateStr(unionLog.getCreateTime(),"yyyy-MM-dd HH:mm:ss");
|
|
|
//遍历一天的记录,统计每小时的激活数
|
|
|
//3.遍历一天的记录,统计每小时的激活数
|
|
|
int key = Integer.parseInt(createTime.substring(11,13));
|
|
|
List<Integer> countList = countMap.get(key);
|
|
|
//list第一个元素是idfa的激活数
|
|
|
if(StringUtils.isNotEmpty(unionLog.getIdfa())){
|
|
|
countList.set(0,countList.get(0)+1);
|
|
|
}
|
|
|
//list第二个元素是idfa的激活数
|
|
|
if (StringUtils.isNotEmpty(unionLog.getImei())){
|
|
|
countList.set(1,countList.get(1)+1);
|
|
|
}
|
...
|
...
|
|