From f4df52dd1c0f32b8383cb410aaf428058d4e9ab4 Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Thu, 27 Nov 2025 18:36:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E6=80=81=E5=8F=AA=E6=9C=89a=E9=A1=B9?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E5=BD=93a=E7=9B=B8=E6=97=A0=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E6=97=B6=E5=88=A4=E6=96=AD=E4=B8=BA=E4=B8=8D=E7=AC=A6?= =?UTF-8?q?=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gather/detection/service/impl/DetectionServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/detection/src/main/java/com/njcn/gather/detection/service/impl/DetectionServiceImpl.java b/detection/src/main/java/com/njcn/gather/detection/service/impl/DetectionServiceImpl.java index 01152ca4..20ed0c09 100644 --- a/detection/src/main/java/com/njcn/gather/detection/service/impl/DetectionServiceImpl.java +++ b/detection/src/main/java/com/njcn/gather/detection/service/impl/DetectionServiceImpl.java @@ -12,6 +12,7 @@ import com.njcn.gather.detection.pojo.enums.DetectionCodeEnum; import com.njcn.gather.detection.pojo.param.PreDetectionParam; import com.njcn.gather.detection.pojo.po.DevData; import com.njcn.gather.detection.pojo.vo.DetectionData; +import com.njcn.gather.device.pojo.enums.CheckResultEnum; import com.njcn.gather.err.pojo.param.PqErrSysParam; import com.njcn.gather.err.pojo.po.PqErrSysDtls; import com.njcn.gather.err.pojo.vo.ErrDtlsCheckDataVO; @@ -774,6 +775,9 @@ public class DetectionServiceImpl { )) .collect(Collectors.toList()); DetectionData a = setDetectionData(isQualified, dataRule, mag, fData, dur, magErrList, channelTypeAList, TYPE_A); + if (CollUtil.isEmpty(mag.get(TYPE_A))) { + a.setIsData(2); + } result.setAValue(JSON.toJSONString(a)); result.setTValue(JSON.toJSONString(a)); result.setResultFlag(a.getIsData());