zbj//1.算法bug解决
This commit is contained in:
@@ -551,7 +551,7 @@ public class RAlarmCountServiceImpl implements RAlarmCountService {
|
||||
zwwtResult.get(0).setHarmonicTypeGrade(0);
|
||||
zwwtResult.get(1).setHarmonicTypeGrade(1);
|
||||
} else {
|
||||
i = (int) (zwwtResult.size() * 0.3);
|
||||
i = (int) (zwwtResult.size() * 0.3)+1;
|
||||
if (i < 1) {
|
||||
i = 1;
|
||||
}
|
||||
@@ -581,7 +581,7 @@ public class RAlarmCountServiceImpl implements RAlarmCountService {
|
||||
zwztResult.get(0).setEventTypeGrade(0);
|
||||
zwztResult.get(1).setEventTypeGrade(1);
|
||||
} else {
|
||||
i = (int) (zwztResult.size() * 0.3);
|
||||
i = (int) (zwztResult.size() * 0.3)+1;
|
||||
if (i < 1) {
|
||||
i = 1;
|
||||
}
|
||||
@@ -620,7 +620,7 @@ public class RAlarmCountServiceImpl implements RAlarmCountService {
|
||||
pwwtResult.get(0).setHarmonicTypeGrade(0);
|
||||
pwwtResult.get(1).setHarmonicTypeGrade(1);
|
||||
} else {
|
||||
i = (int) (pwwtResult.size() * 0.3);
|
||||
i = (int) (pwwtResult.size() * 0.3)+1;
|
||||
if (i < 1) {
|
||||
i = 1;
|
||||
}
|
||||
@@ -650,7 +650,7 @@ public class RAlarmCountServiceImpl implements RAlarmCountService {
|
||||
pwztResult.get(0).setEventTypeGrade(0);
|
||||
pwztResult.get(1).setEventTypeGrade(1);
|
||||
} else {
|
||||
i = (int) (pwztResult.size() * 0.3);
|
||||
i = (int) (pwztResult.size() * 0.3)+1;
|
||||
if (i < 1) {
|
||||
i = 1;
|
||||
}
|
||||
@@ -665,7 +665,7 @@ public class RAlarmCountServiceImpl implements RAlarmCountService {
|
||||
}
|
||||
//循环中等的
|
||||
for (RStatAreaAlarmCountMPO rStatAreaAlarmCountMPO : pwztResult) {
|
||||
if (Objects.isNull(rStatAreaAlarmCountMPO.getHarmonicTypeGrade())) {
|
||||
if (Objects.isNull(rStatAreaAlarmCountMPO.getEventTypeGrade())) {
|
||||
rStatAreaAlarmCountMPO.setEventTypeGrade(1);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -613,7 +613,7 @@ public class RStatEventServiceImpl implements RStatEventService {
|
||||
//天表
|
||||
rStatEventDPOQueryWrapper.clear();
|
||||
rStatEventDPOQueryWrapper.
|
||||
in("measurement_point_id", collect1).
|
||||
eq("org_no", deptGetChildrenMoreDTO.getUnitId()).
|
||||
between("data_date", startDate, endDate).
|
||||
eq("measurement_type_class", getmeasurementType(k, lineSortMap)).
|
||||
eq("data_type", dataTypeMap.get(DicDataEnum.DISTRIBUTION_POINT.getCode()).getId());
|
||||
@@ -622,7 +622,7 @@ public class RStatEventServiceImpl implements RStatEventService {
|
||||
//月表
|
||||
rStatEventMPOQueryWrapper.clear();
|
||||
rStatEventMPOQueryWrapper.
|
||||
in("measurement_point_id", collect1).
|
||||
eq("org_no", deptGetChildrenMoreDTO.getUnitId()).
|
||||
between("data_date", startDate, endDate).
|
||||
eq("measurement_type_class", getmeasurementType(k, lineSortMap)).
|
||||
eq("data_type", dataTypeMap.get(DicDataEnum.DISTRIBUTION_POINT.getCode()).getId());
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user