From c9301d1f8f37d2c823a075ec89530b36be800d18 Mon Sep 17 00:00:00 2001 From: hzj <826100833@qq.com> Date: Fri, 16 Jan 2026 14:43:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9A=82=E6=80=81=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E9=87=8C=E6=8C=81=E7=BB=AD=E6=97=B6=E9=97=B4=E5=8D=95?= =?UTF-8?q?=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../majornetwork/Impl/ReportServiceImpl.java | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/pqs-event/event-boot/src/main/java/com/njcn/event/service/majornetwork/Impl/ReportServiceImpl.java b/pqs-event/event-boot/src/main/java/com/njcn/event/service/majornetwork/Impl/ReportServiceImpl.java index 0908174af..8494da58c 100644 --- a/pqs-event/event-boot/src/main/java/com/njcn/event/service/majornetwork/Impl/ReportServiceImpl.java +++ b/pqs-event/event-boot/src/main/java/com/njcn/event/service/majornetwork/Impl/ReportServiceImpl.java @@ -4271,11 +4271,11 @@ public class ReportServiceImpl implements ReportService { List obs = new ArrayList<>(); ArrayList> list = new ArrayList<>(); for (EventDetailNew eventDetail : detailList) { - obs.add(new OB(Double.parseDouble(eventDetail.getDuration() / 1000 + "") + obs.add(new OB(Double.parseDouble(eventDetail.getDuration() + "") , Double.parseDouble(eventDetail.getFeatureAmplitude() * 100 + ""))); ArrayList doubles = new ArrayList<>(); - doubles.add(Double.parseDouble(eventDetail.getDuration() / 1000 + "")); + doubles.add(Double.parseDouble(eventDetail.getDuration() + "")); doubles.add(Double.parseDouble(String.valueOf(eventDetail.getFeatureAmplitude() * 100))); list.add(doubles); } @@ -4332,10 +4332,10 @@ public class ReportServiceImpl implements ReportService { ArrayList> list = new ArrayList<>(); for (EventDetailNew eventDetail : detailList) { - obs.add(new OB(Double.parseDouble(eventDetail.getDuration() / 1000 + ""), Double.parseDouble(eventDetail.getFeatureAmplitude() * 100 + ""))); + obs.add(new OB(Double.parseDouble(eventDetail.getDuration() + ""), Double.parseDouble(eventDetail.getFeatureAmplitude() * 100 + ""))); ArrayList doubles = new ArrayList<>(); - doubles.add(Double.parseDouble(eventDetail.getDuration() / 1000 + "")); + doubles.add(Double.parseDouble(eventDetail.getDuration() + "")); doubles.add(Double.parseDouble(String.valueOf(eventDetail.getFeatureAmplitude() * 100))); list.add(doubles); } @@ -7203,11 +7203,11 @@ public class ReportServiceImpl implements ReportService { List obs = new ArrayList<>(); ArrayList> list = new ArrayList<>(); for (EventDetailNew eventDetail : detailList) { - obs.add(new OB(Double.parseDouble(eventDetail.getDuration() / 1000 + "") + obs.add(new OB(Double.parseDouble(eventDetail.getDuration() + "") , Double.parseDouble(eventDetail.getFeatureAmplitude() * 100 + ""))); ArrayList doubles = new ArrayList<>(); - doubles.add(Double.parseDouble(eventDetail.getDuration() / 1000 + "")); + doubles.add(Double.parseDouble(eventDetail.getDuration() + "")); doubles.add(Double.parseDouble(String.valueOf(eventDetail.getFeatureAmplitude() * 100))); list.add(doubles); } @@ -7264,10 +7264,10 @@ public class ReportServiceImpl implements ReportService { ArrayList> list = new ArrayList<>(); for (EventDetailNew eventDetail : detailList) { - obs.add(new OB(Double.parseDouble(eventDetail.getDuration() / 1000 + ""), Double.parseDouble(eventDetail.getFeatureAmplitude() * 100 + ""))); + obs.add(new OB(Double.parseDouble(eventDetail.getDuration() + ""), Double.parseDouble(eventDetail.getFeatureAmplitude() * 100 + ""))); ArrayList doubles = new ArrayList<>(); - doubles.add(Double.parseDouble(eventDetail.getDuration() / 1000 + "")); + doubles.add(Double.parseDouble(eventDetail.getDuration() + "")); doubles.add(Double.parseDouble(String.valueOf(eventDetail.getFeatureAmplitude() * 100))); list.add(doubles); } @@ -7991,7 +7991,7 @@ public class ReportServiceImpl implements ReportService { } for (int i = 0; i < areaTableParam.getInfo().size(); i++) { Double eventvalue = areaTableParam.getInfo().get(i).getFeatureAmplitude(); - double persisttime = areaTableParam.getInfo().get(i).getDuration(); + double persisttime = areaTableParam.getInfo().get(i).getDuration()*1000; if (eventvalue * 100 < 1 && eventvalue * 100 >= 0) { if (persisttime > 10 && persisttime <= 100) { arr[16][0]++; @@ -8719,28 +8719,28 @@ public class ReportServiceImpl implements ReportService { List sisttime = new ArrayList<>(); for (EventDetailNew eventDetail : info) { Double persistTime = eventDetail.getDuration(); - if (persistTime / 1000 < 0.1) { + if (persistTime < 0.1) { timeMap2.put("<0.1", timeMap2.get("<0.1") + 1); } - if (persistTime / 1000 < 0.25) { + if (persistTime < 0.25) { timeMap2.put("<0.25", timeMap2.get("<0.25") + 1); } - if (persistTime / 1000 < 0.5) { + if (persistTime < 0.5) { timeMap2.put("<0.5", timeMap2.get("<0.5") + 1); } - if (persistTime / 1000 < 1) { + if (persistTime < 1) { timeMap2.put("<1", timeMap2.get("<1") + 1); } - if (persistTime / 1000 < 3) { + if (persistTime < 3) { timeMap2.put("<3", timeMap2.get("<3") + 1); } - if (persistTime / 1000 < 20) { + if (persistTime < 20) { timeMap2.put("<20", timeMap2.get("<20") + 1); } - if (persistTime / 1000 < 60) { + if (persistTime < 60) { timeMap2.put("<60", timeMap2.get("<60") + 1); } - if (persistTime / 1000 < 180) { + if (persistTime < 180) { timeMap2.put("<180", timeMap2.get("<180") + 1); } }