From fe7af8a632f84ec0d7962f0fd0f3b577a933eee2 Mon Sep 17 00:00:00 2001 From: chendaofei <857448963@qq.com> Date: Tue, 25 Mar 2025 11:32:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E9=A1=B9=E7=BB=93=E6=9E=9C=E6=B1=87?= =?UTF-8?q?=E9=9B=86=E5=A4=A7=E9=A1=B9=E7=BB=93=E6=9E=9C=E9=80=BB=E8=BE=91?= =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gather/detection/handler/SocketDevResponseService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }