|
@@ -31,14 +31,22 @@ public class SceneServiceImpl implements ISceneService {
|
|
|
param.setNumList(numList);
|
|
|
param.setStatus(2);
|
|
|
param.setPageNum(1);
|
|
|
+ param.setType(0);
|
|
|
param.setPageSize(9999);
|
|
|
+ JSONArray list = fdkkList(param);
|
|
|
+ param.setType(1);
|
|
|
+ JSONArray list1 = fdkkList(param);
|
|
|
+ list.addAll(list1);
|
|
|
+ return overSceneVo(list);
|
|
|
+ }
|
|
|
+
|
|
|
+ private JSONArray fdkkList(SceneParam param ){
|
|
|
FdkkResponse fdkkResponse = fdKKClient.sceneList(param);
|
|
|
if (fdkkResponse.getCode() != 0) {
|
|
|
- throw new BusinessException(fdkkResponse.getCode(), fdkkResponse.getMsg());
|
|
|
+ return new JSONArray();
|
|
|
}
|
|
|
PageInfo pageInfo = JSONObject.parseObject(JSONObject.toJSONString(fdkkResponse.getData()), PageInfo.class);
|
|
|
- JSONArray list = JSONArray.parseArray(JSONObject.toJSONString(pageInfo.getList()));
|
|
|
- return overSceneVo(list);
|
|
|
+ return JSONArray.parseArray(JSONObject.toJSONString(pageInfo.getList()));
|
|
|
}
|
|
|
|
|
|
@Override
|