From 05b4b18f4a5e14804297336d94f683bbf8486e40 Mon Sep 17 00:00:00 2001 From: wuzeyu <1223318623@qq.com> Date: 星期四, 22 八月 2024 09:01:16 +0800 Subject: [PATCH] 优化用户分页查询接口 --- pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/controller/ControllerSv.java | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/controller/ControllerSv.java b/pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/controller/ControllerSv.java index a6bbf1c..edce345 100644 --- a/pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/controller/ControllerSv.java +++ b/pipIrr-platform/pipIrr-web/pipIrr-web-project/src/main/java/com/dy/pipIrrProject/controller/ControllerSv.java @@ -64,7 +64,14 @@ com.code = "LCD0001"; com.type = "innerCommand"; - JSONObject response = (JSONObject) JSON.toJSON(sendCom2Mw(com)); + JSONObject response = null; + try { + response = (JSONObject) JSON.toJSON(sendCom2Mw(com)); + }catch (Exception e) { + QueryResultVo<List<VoController>> rsVo = new QueryResultVo<>(); + return rsVo; + } + if (response != null && response.getString("code").equals("0001")) { JSONObject attachment = response.getJSONObject("content").getJSONObject("attachment").getJSONObject("onLineMap"); -- Gitblit v1.8.0