Przeglądaj źródła

协作场景为空返回

lyhzzz 2 lat temu
rodzic
commit
c9223182a3

+ 2 - 4
src/main/java/com/fdkankan/ucenter/service/impl/SceneCooperationServiceImpl.java

@@ -201,10 +201,8 @@ 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();
-            PageInfo<Object> pageinfo = new PageInfo<>();
-            pageinfo.setList(new ArrayList<>());
-            jsonObject.put("pageInfo", pageinfo);
-            jsonObject.put("sceneNum",0);
+            jsonObject.put("list", new ArrayList<>());
+            jsonObject.put("total",0);
             return jsonObject;
         }
         param.setNumList(numList);