diff --git a/cs-device/cs-device-api/src/main/java/com/njcn/csdevice/pojo/vo/DataGroupEventVO.java b/cs-device/cs-device-api/src/main/java/com/njcn/csdevice/pojo/vo/DataGroupEventVO.java index 6961dca..fdc5635 100644 --- a/cs-device/cs-device-api/src/main/java/com/njcn/csdevice/pojo/vo/DataGroupEventVO.java +++ b/cs-device/cs-device-api/src/main/java/com/njcn/csdevice/pojo/vo/DataGroupEventVO.java @@ -20,9 +20,6 @@ public class DataGroupEventVO { @ApiModelProperty("事件ID") private String eventId; - @ApiModelProperty("变电站名称") - private String subName; - @ApiModelProperty("监测点ID") private String lineId; diff --git a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsEquipmentDeliveryServiceImpl.java b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsEquipmentDeliveryServiceImpl.java index b17ad4b..7ecfcac 100644 --- a/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsEquipmentDeliveryServiceImpl.java +++ b/cs-device/cs-device-boot/src/main/java/com/njcn/csdevice/service/impl/CsEquipmentDeliveryServiceImpl.java @@ -346,7 +346,7 @@ public class CsEquipmentDeliveryServiceImpl extends ServiceImpl 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 impl temp.setPhaseType(evtParamPhase.get(0).getValue()+(Objects.isNull(evtParamPhase.get(0).getUnit())?"":evtParamPhase.get(0).getUnit())); } } - //变电站名称 - List lineDetailVOS = lineFeignClient.getLineDetailByIds(Arrays.asList(temp.getLineId())).getData(); - if(!lineDetailVOS.isEmpty()){ - temp.setSubName(lineDetailVOS.get(0).getSubName()); - } - //暂降幅值 - List 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;