diff --git a/detection/src/main/java/com/njcn/gather/detection/handler/SocketDevResponseService.java b/detection/src/main/java/com/njcn/gather/detection/handler/SocketDevResponseService.java index 0007d11f..d339384c 100644 --- a/detection/src/main/java/com/njcn/gather/detection/handler/SocketDevResponseService.java +++ b/detection/src/main/java/com/njcn/gather/detection/handler/SocketDevResponseService.java @@ -1177,7 +1177,7 @@ public class SocketDevResponseService { } /** - * 返回大项检测结果 + * 返回大项检测结果,默认遇到 4,5时认为不参与计算 */ public Integer[] getMaxIntArray(List 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; }