From 2b2f70a910d60b3789eb720bebcce56c80e22752 Mon Sep 17 00:00:00 2001 From: gaoyutao Date: Tue, 13 Jan 2026 10:05:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=98=A8=E6=97=A595=E5=80=BC?= =?UTF-8?q?=E6=B2=A1=E8=AE=A1=E7=AE=97bug=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/service/impl/EpsInitialTrafficDataServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tongran-modules/tongran-system/src/main/java/com/tongran/system/service/impl/EpsInitialTrafficDataServiceImpl.java b/tongran-modules/tongran-system/src/main/java/com/tongran/system/service/impl/EpsInitialTrafficDataServiceImpl.java index aedaebb..6c6652d 100644 --- a/tongran-modules/tongran-system/src/main/java/com/tongran/system/service/impl/EpsInitialTrafficDataServiceImpl.java +++ b/tongran-modules/tongran-system/src/main/java/com/tongran/system/service/impl/EpsInitialTrafficDataServiceImpl.java @@ -772,6 +772,7 @@ public class EpsInitialTrafficDataServiceImpl implements EpsInitialTrafficDataSe // 对每个businessCode计算全天的95带宽 for (String businessCode : businessCodes) { // 设置当前要统计的业务代码(需要在queryParam或calculateSegment95中支持businessCode过滤) + queryParam.setMac(null); queryParam.setBusinessId(businessCode); // 假设queryParam有setBusinessCode方法 calculateSegment95(queryParam, dailyStartTime, dailyEndTime, calculationMode); } @@ -781,6 +782,7 @@ public class EpsInitialTrafficDataServiceImpl implements EpsInitialTrafficDataSe .map(EpsMethodChangeRecord::getTrafficPort) .filter(Objects::nonNull) .collect(Collectors.toSet()); + queryParam.setBusinessId(null); if(names != null && !names.isEmpty()){ // 对每个网卡计算全天的95带宽 for (String name : names) { @@ -798,11 +800,13 @@ public class EpsInitialTrafficDataServiceImpl implements EpsInitialTrafficDataSe } }else{ queryParam.setBusinessId(null); + queryParam.setMac(null); calculateNormalDeviceBandwidth(queryParam, dailyStartTime, dailyEndTime, calculationMode); } } }else{ queryParam.setBusinessId(null); + queryParam.setMac(null); calculateNormalDeviceBandwidth(queryParam, dailyStartTime, dailyEndTime, calculationMode); } }