小项结果汇集大项结果逻辑调整
This commit is contained in:
@@ -1177,7 +1177,7 @@ public class SocketDevResponseService {
|
||||
}
|
||||
|
||||
/**
|
||||
* 返回大项检测结果
|
||||
* 返回大项检测结果,默认遇到 4,5时认为不参与计算
|
||||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user