1.无线bug修改

This commit is contained in:
2024-09-24 09:08:20 +08:00
parent 509712b5b5
commit e836d9bd07
3 changed files with 5 additions and 13 deletions

View File

@@ -346,7 +346,7 @@ public class CsEquipmentDeliveryServiceImpl extends ServiceImpl<CsEquipmentDeliv
for (CsDataSet item : dataSet) {
DeviceManagerVO.DataSetVO dataSetVO = new DeviceManagerVO.DataSetVO();
dataSetVO.setId(item.getId());
dataSetVO.setName("准实时数据");
dataSetVO.setName("history".equals(type) ? "准实时数据":item.getAnotherName());
dataSetVO.setType("rt");
dataSetList.add(dataSetVO);
deviceManagerVo.setDataLevel(item.getDataLevel());

View File

@@ -288,7 +288,9 @@ public class CsGroupServiceImpl extends ServiceImpl<CsGroupMapper, CsGroup> impl
@Override
public Object deviceDataByType(CommonStatisticalQueryParam commonStatisticalQueryParam) {
String type = commonStatisticalQueryParam.getType();
if (type == null) throw new BusinessException(LineBaseEnum.NOTYPE_FAIL.getMessage());
if (type == null){
throw new BusinessException(LineBaseEnum.NOTYPE_FAIL.getMessage());
}
//传1 则是趋势数据tab页面
if("1".equals(type)){
formatQueryParamList(commonStatisticalQueryParam);
@@ -419,14 +421,7 @@ public class CsGroupServiceImpl extends ServiceImpl<CsGroupMapper, CsGroup> impl
temp.setPhaseType(evtParamPhase.get(0).getValue()+(Objects.isNull(evtParamPhase.get(0).getUnit())?"":evtParamPhase.get(0).getUnit()));
}
}
//变电站名称
List<LineDetailVO.Detail> lineDetailVOS = lineFeignClient.getLineDetailByIds(Arrays.asList(temp.getLineId())).getData();
if(!lineDetailVOS.isEmpty()){
temp.setSubName(lineDetailVOS.get(0).getSubName());
}
//暂降幅值
List<RmpEventDetailPO> eventDetails = eventDetailFeignClient.getEventDetailByIdsList(Arrays.asList(temp.getEventId())).getData();
if(eventDetails !=null && !eventDetails.isEmpty()) temp.setFeatureAmplitude(PubUtils.floatRound(2, eventDetails.get(0).getFeatureAmplitude().floatValue()));
});
return returnpage;