|
@@ -114,11 +114,13 @@ public class ScenePlusVoidServiceImpl extends ServiceImpl<IScenePlusVoidMapper,
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public HashMap<Long, ScenePlusVoid> getByPlusIds(List<Long> plusIds) {
|
|
public HashMap<Long, ScenePlusVoid> getByPlusIds(List<Long> plusIds) {
|
|
- LambdaQueryWrapper<ScenePlusVoid> wrapper = new LambdaQueryWrapper<>();
|
|
|
|
- wrapper.in(ScenePlusVoid::getPlusId,plusIds);
|
|
|
|
- List<ScenePlusVoid> list = this.list(wrapper);
|
|
|
|
HashMap<Long,ScenePlusVoid> map = new HashMap<>();
|
|
HashMap<Long,ScenePlusVoid> map = new HashMap<>();
|
|
- list.forEach(entity -> map.put(entity.getPlusId(),entity));
|
|
|
|
|
|
+ LambdaQueryWrapper<ScenePlusVoid> wrapper = new LambdaQueryWrapper<>();
|
|
|
|
+ if(plusIds.size()>0){
|
|
|
|
+ wrapper.in(ScenePlusVoid::getPlusId,plusIds);
|
|
|
|
+ List<ScenePlusVoid> list = this.list(wrapper);
|
|
|
|
+ list.forEach(entity -> map.put(entity.getPlusId(),entity));
|
|
|
|
+ }
|
|
return map;
|
|
return map;
|
|
}
|
|
}
|
|
}
|
|
}
|