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