From 93857809129a635f12a0e7c5a2d389057ce92134 Mon Sep 17 00:00:00 2001 From: liwen Date: Fri, 2 Aug 2024 12:38:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E7=94=9F=E5=91=BD=E5=91=A8=E6=9C=9F=E4=B8=AD=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E5=8F=B0=E8=B4=A6=E9=A1=B5=E9=9D=A2=E7=9A=84=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/impl/RealTimeDataServerImpl.java | 23 ++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/hzims-service/equipment/src/main/java/com/hnac/hzims/monitor/server/impl/RealTimeDataServerImpl.java b/hzims-service/equipment/src/main/java/com/hnac/hzims/monitor/server/impl/RealTimeDataServerImpl.java index 515693c..3ceb199 100644 --- a/hzims-service/equipment/src/main/java/com/hnac/hzims/monitor/server/impl/RealTimeDataServerImpl.java +++ b/hzims-service/equipment/src/main/java/com/hnac/hzims/monitor/server/impl/RealTimeDataServerImpl.java @@ -37,17 +37,20 @@ public class RealTimeDataServerImpl implements RealTimeDataServer { @Override public R> getData(RealDataSearchPO po) { - - List data = null; - try { - data = analyseDataSearchClient.getRealDataByAnalyzeCode(po).getData(); - } catch (Exception e) { - throw new RuntimeException(e.getMessage()); - } - if(CollectionUtil.isNotEmpty(data)){ - return R.data(data); + R> res = analyseDataSearchClient.getRealDataByAnalyzeCode(po); + String msg = res.getMsg(); + if ("操作成功".equals(msg)) { + List data; + try { + data = analyseDataSearchClient.getRealDataByAnalyzeCode(po).getData(); + } catch (Exception e) { + throw new RuntimeException(e.getMessage()); + } + if (CollectionUtil.isNotEmpty(data)) { + return R.data(data); + } } - return R.data(null); + return R.fail(msg); } @Override