浏览代码

深时场景obj

lyhzzz 2 年之前
父节点
当前提交
ebd7fc0160

+ 2 - 0
src/main/java/com/fdkankan/ucenter/service/IScenePlusExtService.java

@@ -21,4 +21,6 @@ public interface IScenePlusExtService extends IService<ScenePlusExt> {
     HashMap<Long,ScenePlusExt> getByPlusIds(List<Long> plusIds);
     HashMap<Long,ScenePlusExt> getByPlusIds(List<Long> plusIds);
 
 
     ScenePlusExt getByUnicode(String unicode);
     ScenePlusExt getByUnicode(String unicode);
+
+    List<ScenePlusExt> getSsObj();
 }
 }

+ 7 - 0
src/main/java/com/fdkankan/ucenter/service/impl/FusionService.java

@@ -69,6 +69,13 @@ public class FusionService implements IFusionService {
             resourceList = Arrays.asList(1,2,12,13,14);
             resourceList = Arrays.asList(1,2,12,13,14);
         }else if(param.getType()!= null && param.getType() == 1){       //看见
         }else if(param.getType()!= null && param.getType() == 1){       //看见
             resourceList = Collections.singletonList(3);
             resourceList = Collections.singletonList(3);
+        }else if(param.getType()!=null && param.getType() == 4){
+            resourceList = Collections.singletonList(4);
+            List<ScenePlusExt> plusExtList = scenePlusExtService.getSsObj();
+            List<Long> plusIds = plusExtList.stream().map(ScenePlusExt::getPlusId).collect(Collectors.toList());
+            if(plusIds.size() >0){
+                wrapper.in(ScenePlus::getId,plusIds);
+            }
         }
         }
         if(param.getStatus() !=null && param.getStatus() == 2){
         if(param.getStatus() !=null && param.getStatus() == 2){
             wrapper.eq(ScenePlus::getSceneStatus,-2);           //计算成功
             wrapper.eq(ScenePlus::getSceneStatus,-2);           //计算成功

+ 7 - 0
src/main/java/com/fdkankan/ucenter/service/impl/ScenePlusExtServiceImpl.java

@@ -53,4 +53,11 @@ public class ScenePlusExtServiceImpl extends ServiceImpl<IScenePlusExtMapper, Sc
         }
         }
         return null;
         return null;
     }
     }
+
+    @Override
+    public List<ScenePlusExt> getSsObj() {
+        LambdaQueryWrapper<ScenePlusExt> wrapper = new LambdaQueryWrapper<>();
+        wrapper.eq(ScenePlusExt::getIsObj,1);
+        return this.list(wrapper);
+    }
 }
 }