lyhzzz 5 月之前
父節點
當前提交
772d64a6d7
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/main/java/com/fdkankan/ucenter/service/impl/SceneCooperationServiceImpl.java

+ 3 - 0
src/main/java/com/fdkankan/ucenter/service/impl/SceneCooperationServiceImpl.java

@@ -494,6 +494,9 @@ public class SceneCooperationServiceImpl extends ServiceImpl<ISceneCooperationMa
 
     @Override
     public HashMap<String, List<User>> getByNumList(List<String> numList) {
+        if(numList == null || numList.isEmpty()){
+            return new HashMap<>();
+        }
         LambdaQueryWrapper<SceneCooperation> wrapper = new LambdaQueryWrapper<>();
         wrapper.in(SceneCooperation::getSceneNum,numList);
         List<SceneCooperation> list = this.list(wrapper);