瀏覽代碼

协作场景为空返回

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

+ 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());
         List<String> numList = list.parallelStream().map(SceneCooperation::getSceneNum).collect(Collectors.toList());
         if(numList.size() <=0){
         if(numList.size() <=0){
             JSONObject jsonObject = new JSONObject();
             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;
             return jsonObject;
         }
         }
         param.setNumList(numList);
         param.setNumList(numList);