From 48c8f6440a6c0b0c060467a0633bc669ca255345 Mon Sep 17 00:00:00 2001
From: PC <PC@PC1RHZ4L>
Date: 星期六, 30 三月 2024 16:12:41 +0800
Subject: [PATCH] wangzq commit!

---
 smart-man-boot/src/main/java/com/qianwen/smartman/modules/perf/wrapper/PerfWrapper.java |   16 ++++------------
 1 files changed, 4 insertions(+), 12 deletions(-)

diff --git a/smart-man-boot/src/main/java/com/qianwen/smartman/modules/perf/wrapper/PerfWrapper.java b/smart-man-boot/src/main/java/com/qianwen/smartman/modules/perf/wrapper/PerfWrapper.java
index c03cad8..e26eba3 100644
--- a/smart-man-boot/src/main/java/com/qianwen/smartman/modules/perf/wrapper/PerfWrapper.java
+++ b/smart-man-boot/src/main/java/com/qianwen/smartman/modules/perf/wrapper/PerfWrapper.java
@@ -85,9 +85,7 @@
                 if (sum == 0) {
                     kv.putAll(stateRatio);
                 } else {
-                    stateRatio.forEach(k, v -> {
-                        kv.put(k, NumberUtil.decimalFormat(MdcConstant.RATE_FORMAT, v.longValue() / (sum * 1.0d)));
-                    });
+                    stateRatio.forEach((k, v) -> kv.put(k, NumberUtil.decimalFormat(MdcConstant.RATE_FORMAT, v.longValue() / (sum * 1.0d))));
                 }
             }
             kv.put(OUTPUT_KEY, outputMap.getOrDefault(time2, 0L));
@@ -155,9 +153,7 @@
                 if (sum == 0) {
                     kv.putAll(stateRatio);
                 } else {
-                    stateRatio.forEach(k, v -> {
-                        kv.put(k, NumberUtil.decimalFormat(MdcConstant.RATE_FORMAT, v.longValue() / (sum * 1.0d)));
-                    });
+                    stateRatio.forEach((k, v) ->kv.put(k, NumberUtil.decimalFormat(MdcConstant.RATE_FORMAT, v.longValue() / (sum * 1.0d))));
                 }
             }
             kv.put(OUTPUT_KEY, outputMap.getOrDefault(day, 0L));
@@ -205,9 +201,7 @@
                 if (sum == 0) {
                     kv.putAll(stateRatio);
                 } else {
-                    stateRatio.forEach(k, v -> {
-                        kv.put(k, NumberUtil.decimalFormat(MdcConstant.RATE_FORMAT, v.longValue() / (sum * 1.0d)));
-                    });
+                    stateRatio.forEach((k, v) ->kv.put(k, NumberUtil.decimalFormat(MdcConstant.RATE_FORMAT, v.longValue() / (sum * 1.0d))));
                 }
             }
             kv.put(OUTPUT_KEY, outputMap.getOrDefault(wId, 0L));
@@ -255,9 +249,7 @@
                 if (sum == 0) {
                     kv.putAll(stateRatio);
                 } else {
-                    stateRatio.forEach(k, v -> {
-                        kv.put(k, NumberUtil.decimalFormat(MdcConstant.RATE_FORMAT, v.longValue() / (sum * 1.0d)));
-                    });
+                    stateRatio.forEach((k, v) ->kv.put(k, NumberUtil.decimalFormat(MdcConstant.RATE_FORMAT, v.longValue() / (sum * 1.0d))));
                 }
             }
             kv.put(OUTPUT_KEY, outputMap.getOrDefault(eId, 0L));

--
Gitblit v1.9.3