小项结果汇集大项结果逻辑调整

This commit is contained in:
2025-03-25 11:32:31 +08:00
parent c67a2c8323
commit fe7af8a632

View File

@@ -1177,7 +1177,7 @@ public class SocketDevResponseService {
}
/**
* 返回大项检测结果
* 返回大项检测结果,默认遇到 45时认为不参与计算
*/
public Integer[] getMaxIntArray(List<Integer[]> arrays) {
int length = arrays.get(0).length;
@@ -1186,14 +1186,14 @@ public class SocketDevResponseService {
int maxValue = -1;
for (Integer[] array : arrays) {
int value = array[i];
if (value != 4) {
if (value != 4 && value != 5) {
if (value > maxValue) {
maxValue = value;
}
}
}
if (maxValue == -1) {
maxArray[i] = 4;
maxArray[i] = arrays.get(0)[i];
} else {
maxArray[i] = maxValue;
}