|
|
|
@ -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<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()); |
|
|
|
|
R<List<FieldsData>> realDataResult = analyseDataSearchClient.getRealDataByAnalyzeCode(po); |
|
|
|
|
List<FieldsData> data = Lists.newArrayList(); |
|
|
|
|
if(realDataResult.isSuccess()) { |
|
|
|
|
data.addAll(realDataResult.getData()); |
|
|
|
|
} |
|
|
|
|
if (CollectionUtil.isNotEmpty(data)) { |
|
|
|
|
return R.data(data); |
|
|
|
|