微调
This commit is contained in:
@@ -850,6 +850,7 @@ public class DetectionServiceImpl {
|
|||||||
errSysDtlMap.put(key, null);
|
errSysDtlMap.put(key, null);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
if (CollUtil.isNotEmpty(devMap)) {
|
||||||
devMap.forEach((harm, harmDataList) -> {
|
devMap.forEach((harm, harmDataList) -> {
|
||||||
PqErrSysDtls errSysDtl = errSysDtlMap.get(harm);
|
PqErrSysDtls errSysDtl = errSysDtlMap.get(harm);
|
||||||
DetectionData data = new DetectionData();
|
DetectionData data = new DetectionData();
|
||||||
@@ -869,6 +870,7 @@ public class DetectionServiceImpl {
|
|||||||
}
|
}
|
||||||
info.add(data);
|
info.add(data);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1226,17 +1228,24 @@ public class DetectionServiceImpl {
|
|||||||
} else {
|
} else {
|
||||||
double v = (num == 1 ? i : (i - num));
|
double v = (num == 1 ? i : (i - num));
|
||||||
if (type.equals("A")) {
|
if (type.equals("A")) {
|
||||||
|
if ((int) v < harm.getList().getA().size()) {
|
||||||
integerListMap.get(i).add(multiply(harm.getList().getA().get((int) v), fund));
|
integerListMap.get(i).add(multiply(harm.getList().getA().get((int) v), fund));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
if (type.equals("B")) {
|
if (type.equals("B")) {
|
||||||
|
if ((int) v < harm.getList().getB().size()) {
|
||||||
integerListMap.get(i).add(multiply(harm.getList().getB().get((int) v), fund));
|
integerListMap.get(i).add(multiply(harm.getList().getB().get((int) v), fund));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (type.equals("C")) {
|
if (type.equals("C")) {
|
||||||
|
if ((int) v < harm.getList().getC().size()) {
|
||||||
integerListMap.get(i).add(multiply(harm.getList().getC().get((int) v), fund));
|
integerListMap.get(i).add(multiply(harm.getList().getC().get((int) v), fund));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
Map<Double, List<Double>> integerListMap = new LinkedHashMap<>(5);
|
Map<Double, List<Double>> integerListMap = new LinkedHashMap<>(5);
|
||||||
for (Double i : harmNum) {
|
for (Double i : harmNum) {
|
||||||
@@ -1247,14 +1256,20 @@ public class DetectionServiceImpl {
|
|||||||
} else {
|
} else {
|
||||||
double v = (num == 1 ? i : (i - num));
|
double v = (num == 1 ? i : (i - num));
|
||||||
if (type.equals("A")) {
|
if (type.equals("A")) {
|
||||||
|
if ((int) v < harm.getList().getA().size()) {
|
||||||
integerList.add(multiply(harm.getList().getA().get((int) v), fund));
|
integerList.add(multiply(harm.getList().getA().get((int) v), fund));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (type.equals("B")) {
|
if (type.equals("B")) {
|
||||||
|
if ((int) v < harm.getList().getB().size()) {
|
||||||
integerList.add(multiply(harm.getList().getB().get((int) v), fund));
|
integerList.add(multiply(harm.getList().getB().get((int) v), fund));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (type.equals("C")) {
|
if (type.equals("C")) {
|
||||||
|
if ((int) v < harm.getList().getC().size()) {
|
||||||
integerList.add(multiply(harm.getList().getC().get((int) v), fund));
|
integerList.add(multiply(harm.getList().getC().get((int) v), fund));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
integerListMap.put(i, integerList);
|
integerListMap.put(i, integerList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user