Browse Source

fix: 解决设备生命周期中运行台账页面的报错问题

zhongwei
liwen 4 months ago
parent
commit
9385780912
  1. 11
      hzims-service/equipment/src/main/java/com/hnac/hzims/monitor/server/impl/RealTimeDataServerImpl.java

11
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<List<FieldsData>> getData(RealDataSearchPO po) {
List<FieldsData> data = null;
R<List<FieldsData>> res = analyseDataSearchClient.getRealDataByAnalyzeCode(po);
String msg = res.getMsg();
if ("操作成功".equals(msg)) {
List<FieldsData> data;
try {
data = analyseDataSearchClient.getRealDataByAnalyzeCode(po).getData();
} catch (Exception e) {
throw new RuntimeException(e.getMessage());
}
if(CollectionUtil.isNotEmpty(data)){
if (CollectionUtil.isNotEmpty(data)) {
return R.data(data);
}
return R.data(null);
}
return R.fail(msg);
}
@Override

Loading…
Cancel
Save