Browse Source

Merge remote-tracking branch 'origin/prod-5.1.3' into prod-5.1.3

zhongwei
yang_shj 4 months ago
parent
commit
5c87898d74
  1. 9
      hzims-service/equipment/src/main/java/com/hnac/hzims/monitor/server/impl/RealTimeDataServerImpl.java

9
hzims-service/equipment/src/main/java/com/hnac/hzims/monitor/server/impl/RealTimeDataServerImpl.java

@ -37,8 +37,10 @@ public class RealTimeDataServerImpl implements RealTimeDataServer {
@Override @Override
public R<List<FieldsData>> getData(RealDataSearchPO po) { public R<List<FieldsData>> getData(RealDataSearchPO po) {
R<List<FieldsData>> res = analyseDataSearchClient.getRealDataByAnalyzeCode(po);
List<FieldsData> data = null; String msg = res.getMsg();
if ("操作成功".equals(msg)) {
List<FieldsData> data;
try { try {
data = analyseDataSearchClient.getRealDataByAnalyzeCode(po).getData(); data = analyseDataSearchClient.getRealDataByAnalyzeCode(po).getData();
} catch (Exception e) { } catch (Exception e) {
@ -47,7 +49,8 @@ public class RealTimeDataServerImpl implements RealTimeDataServer {
if (CollectionUtil.isNotEmpty(data)) { if (CollectionUtil.isNotEmpty(data)) {
return R.data(data); return R.data(data);
} }
return R.data(null); }
return R.fail(msg);
} }
@Override @Override

Loading…
Cancel
Save