lyhzzz 2 лет назад
Родитель
Сommit
5bc52f2a7d

+ 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;
         }