|
@@ -120,9 +120,9 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public HashMap<Long, Long> getCountGroupByUserId(List<Long> userIdList,Integer isObj) {
|
|
|
+ public HashMap<Long, Long> getCountGroupByUserId(List<Long> userIdList) {
|
|
|
HashMap<Long,Long> map = new HashMap<>();
|
|
|
- List<GroupByCount> result = this.getBaseMapper().getCountGroupByUserId(userIdList,isObj);
|
|
|
+ List<GroupByCount> result = this.getBaseMapper().getCountGroupByUserId(userIdList);
|
|
|
result.forEach(entity ->map.put(entity.getId(),entity.getCount()));
|
|
|
return map;
|
|
|
}
|
|
@@ -231,7 +231,18 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
}
|
|
|
}
|
|
|
if((param.getCameraIds() != null && param.getCameraIds().size()<=0) || (param.getUserIds() != null && param.getUserIds().size()<=0)){
|
|
|
- param.setNum("empty");
|
|
|
+ return PageInfo.PageInfoEmpty(param.getPageNum(),param.getPageSize());
|
|
|
+ }
|
|
|
+ HashMap<String, JSONObject> laserMap = new HashMap<>();
|
|
|
+ if(param.getType() == 2 && StringUtils.isNotBlank(param.getSceneName())){
|
|
|
+ laserMap = laserService.list(param.getSceneName(), 4);
|
|
|
+ }
|
|
|
+ if(param.getType() == 6 && StringUtils.isNotBlank(param.getSceneName())){
|
|
|
+ laserMap = laserService.list(param.getSceneName(), 5);
|
|
|
+ }
|
|
|
+ if(!laserMap.isEmpty()){
|
|
|
+ Set<String> keySet = laserMap.keySet();
|
|
|
+ param.setNumList(new ArrayList<>(keySet));
|
|
|
}
|
|
|
|
|
|
Page<SceneVo> page = this.getBaseMapper().pageList(new Page<>(param.getPageNum(),param.getPageSize()),param);
|
|
@@ -264,21 +275,19 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
|
}
|
|
|
}
|
|
|
for (SceneVo record : page.getRecords()) {
|
|
|
- if(record.getStatus() != 0){
|
|
|
- if(param.getType() == 2 || param.getType() == 6){
|
|
|
- JSONObject ssObj = ssSceneMap.get(record.getNum());
|
|
|
- if(ssObj!=null){
|
|
|
- record.setSceneName(ssObj.getString("title"));
|
|
|
- record.setThumb(ssObj.getString("thumb"));
|
|
|
- record.setWebSite(ssObj.getString("webSite"));
|
|
|
- record.setIsObj(ssObj.getInteger("buildObjStatus"));
|
|
|
- record.setViewCount(ssObj.getInteger("viewCount"));
|
|
|
- record.setStatus(toFdStatus(ssObj.getInteger("status")));
|
|
|
- record.setAlgorithmTime(ssObj.getString("algorithmTime"));
|
|
|
- }else{
|
|
|
- record.setStatus(-1);
|
|
|
- record.setWebSite(null);
|
|
|
- }
|
|
|
+ if(param.getType() == 2 || param.getType() == 6){
|
|
|
+ JSONObject ssObj = ssSceneMap.get(record.getNum());
|
|
|
+ if(ssObj!=null){
|
|
|
+ record.setSceneName(ssObj.getString("title"));
|
|
|
+ record.setThumb(ssObj.getString("thumb"));
|
|
|
+ record.setWebSite(ssObj.getString("webSite"));
|
|
|
+ record.setIsObj(ssObj.getInteger("buildObjStatus"));
|
|
|
+ record.setViewCount(ssObj.getInteger("viewCount"));
|
|
|
+ record.setStatus(toFdStatus(ssObj.getInteger("status")));
|
|
|
+ record.setAlgorithmTime(ssObj.getString("algorithmTime"));
|
|
|
+ }else if(record.getStatus() != 0){
|
|
|
+ record.setStatus(-1);
|
|
|
+ record.setWebSite(null);
|
|
|
}
|
|
|
}
|
|
|
|