From e77ae508afddfd24d8e713a63dfe2b3f46e9f070 Mon Sep 17 00:00:00 2001 From: zhubaomin <zhubaomin> Date: 星期四, 31 十月 2024 10:25:34 +0800 Subject: [PATCH] 2024-10-31 农户问题上报添加接口、查询接口、删除接口,在线查询代码优化 --- pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/rtu/RtuLogCtrl.java | 11 ++++++++++- 1 files changed, 10 insertions(+), 1 deletions(-) diff --git a/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/rtu/RtuLogCtrl.java b/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/rtu/RtuLogCtrl.java index 025eb89..18ffe64 100644 --- a/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/rtu/RtuLogCtrl.java +++ b/pipIrr-platform/pipIrr-web/pipIrr-web-remote/src/main/java/com/dy/pipIrrRemote/rtu/RtuLogCtrl.java @@ -92,7 +92,16 @@ @SsoAop() public BaseResponse<List<String>> rtuLogText(String rtuAddr){ String mwUrlRtuLogText = env.getProperty(pro_mw + "." + DataSourceContext.get() + "." + key_mw_text); - return this.requestMw4Text(rtuAddr, mwUrlRtuLogText) ; + BaseResponse<List<String>> text = this.requestMw4Text(rtuAddr, mwUrlRtuLogText); + if (text != null){ + if (text.getContent().get(0).contains("鎺у埗鍣�")){ + return BaseResponseUtils.buildErrorMsg(""+text.getContent().get(0)+"") ; + } + return text ; + }else { + return BaseResponseUtils.buildErrorMsg("鑾峰彇鏃ュ織鏂囦欢涓簄ull") ; + } +// return this.requestMw4Text(rtuAddr, mwUrlRtuLogText) ; } -- Gitblit v1.8.0