From a575c3b6a115fc45f6b988c0094e18ffdd957a60 Mon Sep 17 00:00:00 2001 From: haungxing <1203316822@qq.com> Date: Tue, 6 Aug 2024 13:58:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DAPP=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E8=BF=9B=E5=85=A5=E8=AE=BE=E5=A4=87=E6=A1=A3=E6=A1=88=E6=8A=A5?= =?UTF-8?q?=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hnac/hzims/monitor/server/impl/RealTimeDataServerImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 3ceb199..c5c4a0c 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 @@ -1,6 +1,7 @@ package com.hnac.hzims.monitor.server.impl; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.google.common.collect.Lists; import com.hnac.hzims.equipment.entity.EmInfoEntity; import com.hnac.hzims.equipment.mapper.EmInfoMapper; import com.hnac.hzims.monitor.server.RealTimeDataServer; @@ -40,11 +41,10 @@ public class RealTimeDataServerImpl implements RealTimeDataServer { 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()); + R> realDataResult = analyseDataSearchClient.getRealDataByAnalyzeCode(po); + List data = Lists.newArrayList(); + if(realDataResult.isSuccess()) { + data.addAll(realDataResult.getData()); } if (CollectionUtil.isNotEmpty(data)) { return R.data(data);