bug修改
This commit is contained in:
@@ -23,6 +23,9 @@ public class DevDetailVO {
|
|||||||
@ApiModelProperty(name = "devName",value = "终端名称")
|
@ApiModelProperty(name = "devName",value = "终端名称")
|
||||||
private String devName;
|
private String devName;
|
||||||
|
|
||||||
|
@ApiModelProperty(name = "ip",value = "ip")
|
||||||
|
private String ip;
|
||||||
|
|
||||||
@ApiModelProperty(name = "subName",value = "变电站名称")
|
@ApiModelProperty(name = "subName",value = "变电站名称")
|
||||||
private String subName;
|
private String subName;
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,9 @@ public class DeviceRunEvaluateVO {
|
|||||||
@ApiModelProperty("变电站名称")
|
@ApiModelProperty("变电站名称")
|
||||||
private String subName;
|
private String subName;
|
||||||
|
|
||||||
|
@ApiModelProperty("ip")
|
||||||
|
private String ip;
|
||||||
|
|
||||||
@ApiModelProperty("评价")
|
@ApiModelProperty("评价")
|
||||||
private BigDecimal evaluate;
|
private BigDecimal evaluate;
|
||||||
|
|
||||||
|
|||||||
@@ -1835,24 +1835,27 @@
|
|||||||
where t1.state = 1
|
where t1.state = 1
|
||||||
</select>
|
</select>
|
||||||
<select id="getLineDeviceByDevIds" resultType="com.njcn.device.pq.pojo.vo.DevDetailVO">
|
<select id="getLineDeviceByDevIds" resultType="com.njcn.device.pq.pojo.vo.DevDetailVO">
|
||||||
SELECT
|
SELECT distinct
|
||||||
t.id lineId,
|
t.id lineId,
|
||||||
t.NAME lineName,
|
t.NAME lineName,
|
||||||
dev.id devId,
|
dev.id devId,
|
||||||
dev.NAME devName,
|
dev.NAME devName,
|
||||||
sub.NAME subName,
|
sub.NAME subName,
|
||||||
td.Obj_Id objId
|
td.Obj_Id objId,
|
||||||
|
device.ip
|
||||||
FROM
|
FROM
|
||||||
pq_line t,
|
pq_line t,
|
||||||
pq_line_detail td,
|
pq_line_detail td,
|
||||||
pq_line subv,
|
pq_line subv,
|
||||||
pq_line dev,
|
pq_line dev,
|
||||||
pq_line sub
|
pq_device device,
|
||||||
|
pq_line sub
|
||||||
WHERE
|
WHERE
|
||||||
subv.id = t.pid
|
t.id = td.id
|
||||||
AND t.id = td.id
|
AND subv.id = t.pid
|
||||||
AND dev.id = subv.pid
|
AND dev.id = subv.pid
|
||||||
AND sub.id = dev.pid
|
AND dev.id = device.id
|
||||||
|
AND sub.id = dev.pid
|
||||||
<if test="powerFlag!=null and powerFlag!=2">
|
<if test="powerFlag!=null and powerFlag!=2">
|
||||||
AND td.Power_Flag =#{powerFlag}
|
AND td.Power_Flag =#{powerFlag}
|
||||||
</if>
|
</if>
|
||||||
|
|||||||
@@ -195,6 +195,7 @@ public class DeviceRunEvaluateServiceImpl implements DeviceRunEvaluateService {
|
|||||||
DeviceRunEvaluateVO vo = new DeviceRunEvaluateVO();
|
DeviceRunEvaluateVO vo = new DeviceRunEvaluateVO();
|
||||||
vo.setName(split[1]);
|
vo.setName(split[1]);
|
||||||
vo.setSubName(split[2]);
|
vo.setSubName(split[2]);
|
||||||
|
vo.setIp(value.get(0).getIp());
|
||||||
setEvaluate(Arrays.asList(split[0]),
|
setEvaluate(Arrays.asList(split[0]),
|
||||||
value.stream().map(DevDetailVO::getLineId).distinct().collect(Collectors.toList()),
|
value.stream().map(DevDetailVO::getLineId).distinct().collect(Collectors.toList()),
|
||||||
onIntegrityList, vo, onlineRateList, limitRateList);
|
onIntegrityList, vo, onlineRateList, limitRateList);
|
||||||
@@ -244,6 +245,9 @@ public class DeviceRunEvaluateServiceImpl implements DeviceRunEvaluateService {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
for (GeneralDeviceDTO generalDeviceDTO : generalDeviceDTOList) {
|
for (GeneralDeviceDTO generalDeviceDTO : generalDeviceDTOList) {
|
||||||
|
if(CollUtil.isEmpty(generalDeviceDTO.getDeviceIndexes())){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
List<RStatIntegrityD> rStatIntegrityDList = new ArrayList<>();
|
List<RStatIntegrityD> rStatIntegrityDList = new ArrayList<>();
|
||||||
List<RStatOnlinerateD> rStatOnlinerateDList = new ArrayList<>();
|
List<RStatOnlinerateD> rStatOnlinerateDList = new ArrayList<>();
|
||||||
List<RStatLimitRateDPO> rStatLimitRateDPOList = new ArrayList<>();
|
List<RStatLimitRateDPO> rStatLimitRateDPOList = new ArrayList<>();
|
||||||
@@ -252,7 +256,8 @@ public class DeviceRunEvaluateServiceImpl implements DeviceRunEvaluateService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
|
||||||
|
return result.stream().sorted(Comparator.comparing(TerminalEvaluateAreaVO::getScore, Comparator.reverseOrder())).collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user