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

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

@@ -201,7 +201,9 @@ public class SceneCooperationServiceImpl extends ServiceImpl<ISceneCooperationMa
         List<String> numList = list.parallelStream().map(SceneCooperation::getSceneNum).collect(Collectors.toList());
         if(numList.size() <=0){
             JSONObject jsonObject = new JSONObject();
-            jsonObject.put("pageInfo", new PageInfo<>());
+            PageInfo<Object> pageinfo = new PageInfo<>();
+            pageinfo.setList(new ArrayList<>());
+            jsonObject.put("pageInfo", pageinfo);
             jsonObject.put("sceneNum",0);
             return jsonObject;
         }