|
@@ -280,27 +280,30 @@ public class DataService implements IDataService {
|
|
|
List<DataGroupByCount> plusList = new ArrayList<>();
|
|
|
List<DataGroupByCount> proObjList = new ArrayList<>();
|
|
|
List<DataGroupByCount> plusObjList = new ArrayList<>();
|
|
|
+ List<DataGroupByCount> yzlList = new ArrayList<>();
|
|
|
int rule = Dateutils.DAY;
|
|
|
switch (type){
|
|
|
case 0 :
|
|
|
proList = dataMapper.sceneGroupBy("t_scene_pro",dayFormat,startTime,endTime,userIds);
|
|
|
plusList = dataMapper.sceneGroupBy("t_scene_plus",dayFormat,startTime,endTime,userIds);
|
|
|
- proObjList = dataMapper.sceneObjGroupBy("t_scene_pro",dayFormat,startTime,endTime,userIds);
|
|
|
- plusObjList = dataMapper.sceneObjGroupBy("t_scene_plus",dayFormat,startTime,endTime,userIds);
|
|
|
+ proObjList = dataMapper.sceneObjGroupBy("t_scene_pro",dayFormat,startTime,endTime,userIds,null);
|
|
|
+ plusObjList = dataMapper.sceneObjGroupBy("t_scene_plus",dayFormat,startTime,endTime,userIds,null);
|
|
|
+ yzlList = dataMapper.sceneObjGroupBy("t_scene_plus",dayFormat,startTime,endTime,userIds,"yzl");
|
|
|
break;
|
|
|
case 1 :
|
|
|
rule = Dateutils.WEEK;
|
|
|
proList = dataMapper.sceneGroupByWeek("t_scene_pro",startTime,endTime,userIds);
|
|
|
plusList = dataMapper.sceneGroupByWeek("t_scene_plus",startTime,endTime,userIds);
|
|
|
- proObjList = dataMapper.sceneObjGroupByWeek("t_scene_pro",startTime,endTime,userIds);
|
|
|
- plusObjList = dataMapper.sceneObjGroupByWeek("t_scene_plus",startTime,endTime,userIds);
|
|
|
+ proObjList = dataMapper.sceneObjGroupByWeek("t_scene_pro",startTime,endTime,userIds,null);
|
|
|
+ plusObjList = dataMapper.sceneObjGroupByWeek("t_scene_plus",startTime,endTime,userIds,null);
|
|
|
+ yzlList = dataMapper.sceneObjGroupByWeek("t_scene_plus",startTime,endTime,userIds,"yzl");
|
|
|
break;
|
|
|
case 2 :
|
|
|
rule = Dateutils.MONTH;
|
|
|
proList = dataMapper.sceneGroupBy("t_scene_pro",mouthFormat,startTime,endTime,userIds);
|
|
|
plusList = dataMapper.sceneGroupBy("t_scene_plus",mouthFormat,startTime,endTime,userIds);
|
|
|
- proObjList = dataMapper.sceneObjGroupBy("t_scene_pro",mouthFormat,startTime,endTime,userIds);
|
|
|
- plusObjList = dataMapper.sceneObjGroupBy("t_scene_plus",mouthFormat,startTime,endTime,userIds);
|
|
|
+ proObjList = dataMapper.sceneObjGroupBy("t_scene_pro",mouthFormat,startTime,endTime,userIds,null);
|
|
|
+ yzlList = dataMapper.sceneObjGroupBy("t_scene_plus",mouthFormat,startTime,endTime,userIds,"yzl");
|
|
|
break;
|
|
|
}
|
|
|
HashMap<String, Long> kkMap = new HashMap<>();
|
|
@@ -309,6 +312,7 @@ public class DataService implements IDataService {
|
|
|
HashMap<String, Long> ssObjMap = new HashMap<>();
|
|
|
HashMap<String, Long> sgMap = new HashMap<>();
|
|
|
HashMap<String, Long> sgObjMap = new HashMap<>();
|
|
|
+ HashMap<String, Long> yzlMap = new HashMap<>();
|
|
|
for (DataGroupByCount dataGroupByCount : proList) {
|
|
|
if(dataGroupByCount.getGroupKey2().equals("3")){ //看见
|
|
|
kjMap.merge(dataGroupByCount.getGroupKey(),dataGroupByCount.getCount(), Long:: sum);
|
|
@@ -353,19 +357,24 @@ public class DataService implements IDataService {
|
|
|
sgObjMap.merge(dataGroupByCount.getGroupKey(),dataGroupByCount.getCount(), Long:: sum);
|
|
|
}
|
|
|
}
|
|
|
+ for (DataGroupByCount dataGroupByCount : yzlList) {
|
|
|
+ yzlMap.merge(dataGroupByCount.getGroupKey(),dataGroupByCount.getCount(), Long:: sum);
|
|
|
+ }
|
|
|
Long kkCount = 0L;
|
|
|
Long KjCount = 0L;
|
|
|
Long ssCount = 0L;
|
|
|
Long ssObjCount = 0L;
|
|
|
Long sgCount = 0L;
|
|
|
Long sgObjCount = 0L;
|
|
|
+ Long yzlCount = 0L;
|
|
|
if(dataType == 1){
|
|
|
- kkCount = sceneProService.getKkCount(Arrays.asList("1","2","12","13","14"),startTime,userIds);
|
|
|
- KjCount = sceneProService.getKkCount(Arrays.asList("3"),startTime,userIds);
|
|
|
+ kkCount = sceneProService.getKkCount(Arrays.asList("1","2","12","13","14"),startTime,userIds,null);
|
|
|
+ KjCount = sceneProService.getKkCount(Arrays.asList("3"),startTime,userIds,null);
|
|
|
ssCount = sceneProService.getSsCount(Arrays.asList("4"),startTime,userIds);
|
|
|
ssObjCount = sceneProService.getSsObjCount(Arrays.asList("4"),startTime,userIds);
|
|
|
sgCount = sceneProService.getSsCount(Arrays.asList("5"),startTime,userIds);
|
|
|
sgObjCount = sceneProService.getSsObjCount(Arrays.asList("5"),startTime,userIds);
|
|
|
+ yzlCount = sceneProService.getKkCount(Arrays.asList("1"),startTime,userIds,"yzl");
|
|
|
}
|
|
|
List<String> dates = Dateutils.findDatesStr(Dateutils.getDate(startTime), Dateutils.getDate(endTime),rule );
|
|
|
setListData(kkList,kkMap,dates,dataType,kkCount);
|
|
@@ -375,6 +384,7 @@ public class DataService implements IDataService {
|
|
|
|
|
|
setListData(sgList,sgMap,dates,dataType,sgCount);
|
|
|
setListData(sgObjList,sgObjMap,dates,dataType,sgObjCount);
|
|
|
+ setListData(yzlList,yzlMap,dates,dataType,yzlCount);
|
|
|
|
|
|
map.put("kkList",kkList);
|
|
|
map.put("kjList",kjList);
|
|
@@ -382,6 +392,7 @@ public class DataService implements IDataService {
|
|
|
map.put("ssobjList",ssObjList);
|
|
|
map.put("sgList",sgList);
|
|
|
map.put("sgobjList",sgObjList);
|
|
|
+ map.put("yzlList",yzlList);
|
|
|
return map;
|
|
|
}
|
|
|
|