bug解决
This commit is contained in:
@@ -18,6 +18,8 @@ public class OverLimitLineDTO {
|
||||
|
||||
private String lineScale;
|
||||
|
||||
private String manufacturer;
|
||||
|
||||
private String loadType;
|
||||
|
||||
private String lineObjectName;
|
||||
|
||||
@@ -667,7 +667,8 @@
|
||||
A4.`Name` subName,
|
||||
C3.`Name` subScale,
|
||||
A5.`Name` cityCompany,
|
||||
F.`Name` provinceCompany
|
||||
F.`Name` provinceCompany,
|
||||
dev.Manufacturer
|
||||
FROM
|
||||
pq_line A1,
|
||||
pq_line A2,
|
||||
@@ -676,6 +677,7 @@
|
||||
pq_line A5,
|
||||
pq_line A6,
|
||||
pq_voltage B,
|
||||
pq_device dev,
|
||||
sys_dict_data C1,
|
||||
sys_dict_data C2,
|
||||
sys_dict_data C3,
|
||||
@@ -689,7 +691,7 @@
|
||||
</foreach>
|
||||
AND A1.Pid = A2.Id AND A2.Id = B.Id AND B.Scale = C1.Id AND A1.Id = D.Id AND D.Load_Type = C2.Id
|
||||
AND A2.Pid = A3.Id AND A3.Pid = A4.Id AND A4.Pid = A5.Id AND A4.Id = E.Id AND E.Scale = C3.Id
|
||||
AND A5.Pid = A6.Id AND A6.`Name` = F.Area_Code
|
||||
AND A5.Pid = A6.Id AND A6.`Name` = F.Area_Code and A3.id = dev.id
|
||||
</select>
|
||||
|
||||
<select id="getDeviceStatus" resultType="LineStateVO">
|
||||
|
||||
@@ -34,6 +34,9 @@ public class MonitorOverLimitVO {
|
||||
@ApiModelProperty("监测点电压等级")
|
||||
private String lineScale;
|
||||
|
||||
@ApiModelProperty("厂家")
|
||||
private String manufacturer;
|
||||
|
||||
@ApiModelProperty("变电站名称")
|
||||
private String subName;
|
||||
|
||||
|
||||
@@ -180,7 +180,9 @@ public class IntegrityServiceImpl implements IntegrityService {
|
||||
outParam.setType(generalDeviceDTO.getName());
|
||||
//根据监测点查询数据完整性
|
||||
List<PublicDTO> integrityData = getCondition(lineIndexes, integrityIconParam.getSearchBeginTime(), integrityIconParam.getSearchEndTime());
|
||||
outParam.setSingle(NumberUtil.round(integrityData.stream().mapToDouble(PublicDTO::getData).average().orElse(3.14159), 2).doubleValue());
|
||||
|
||||
double temSingle = integrityData.stream().mapToDouble(PublicDTO::getData).average().orElse(3.14159);
|
||||
outParam.setSingle(temSingle == 3.14159 ? temSingle :NumberUtil.round(temSingle, 2).doubleValue());
|
||||
//如果存在需要比较的时间,再获取对应数据
|
||||
if (StrUtil.isNotBlank(integrityIconParam.getPeriodBeginTime()) && StrUtil.isNotBlank(integrityIconParam.getPeriodEndTime())) {
|
||||
List<PublicDTO> compareData = getCondition(lineIndexes, integrityIconParam.getPeriodBeginTime(), integrityIconParam.getPeriodEndTime());
|
||||
|
||||
Reference in New Issue
Block a user