|
@@ -856,12 +856,14 @@ public class SceneProServiceImpl extends ServiceImpl<ISceneProMapper, ScenePro>
|
|
Integer count = 0;
|
|
Integer count = 0;
|
|
ScenePro pro = this.getByNum(num);
|
|
ScenePro pro = this.getByNum(num);
|
|
if(pro !=null){
|
|
if(pro !=null){
|
|
- count = pro.getViewCount();
|
|
|
|
|
|
+ count = pro.getViewCount() == null ? 0 : pro.getViewCount();
|
|
}else {
|
|
}else {
|
|
ScenePlus plus = scenePlusService.getByNum(num);
|
|
ScenePlus plus = scenePlusService.getByNum(num);
|
|
if(plus !=null){
|
|
if(plus !=null){
|
|
ScenePlusExt scenePlusExt = scenePlusExtService.getByPlusId(plus.getId());
|
|
ScenePlusExt scenePlusExt = scenePlusExtService.getByPlusId(plus.getId());
|
|
- count = scenePlusExt.getViewCount();
|
|
|
|
|
|
+ if(scenePlusExt != null){
|
|
|
|
+ count = scenePlusExt.getViewCount() == null ? 0 :scenePlusExt.getViewCount();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
redisUtil.hset(redisKey,num,String.valueOf(count));
|
|
redisUtil.hset(redisKey,num,String.valueOf(count));
|