|
@@ -39,11 +39,13 @@ public class SceneCopyLogServiceImpl extends ServiceImpl<ISceneCopyLogMapper, Sc
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public HashMap<String, SceneCopyLog> getByNewNumList(List<String> numList) {
|
|
public HashMap<String, SceneCopyLog> getByNewNumList(List<String> numList) {
|
|
- LambdaQueryWrapper<SceneCopyLog> wrapper = new LambdaQueryWrapper<>();
|
|
|
|
- wrapper.in(SceneCopyLog::getNewNum,numList);
|
|
|
|
- List<SceneCopyLog> list = this.list(wrapper);
|
|
|
|
HashMap<String,SceneCopyLog> map = new HashMap<>();
|
|
HashMap<String,SceneCopyLog> map = new HashMap<>();
|
|
- list.forEach(entity -> map.put(entity.getNewNum(),entity));
|
|
|
|
|
|
+ LambdaQueryWrapper<SceneCopyLog> wrapper = new LambdaQueryWrapper<>();
|
|
|
|
+ if(numList.size() >0){
|
|
|
|
+ wrapper.in(SceneCopyLog::getNewNum,numList);
|
|
|
|
+ List<SceneCopyLog> list = this.list(wrapper);
|
|
|
|
+ list.forEach(entity -> map.put(entity.getNewNum(),entity));
|
|
|
|
+ }
|
|
return map;
|
|
return map;
|
|
}
|
|
}
|
|
}
|
|
}
|