From 9e5da8899bc21bb5b6b0a3c267108caa00199291 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期日, 19 五月 2024 15:46:08 +0800
Subject: [PATCH] websocket代码整理
---
smart-man-boot/src/main/java/com/qianwen/smartman/modules/perf/wrapper/PerfWrapper.java | 18 +++++-------------
1 files changed, 5 insertions(+), 13 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..ebdd9bb 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
@@ -20,7 +20,7 @@
import com.qianwen.smartman.modules.mdc.entity.SuperAggregateState;
import com.qianwen.smartman.modules.perf.dto.EmployeePerfDTO;
-/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/perf/wrapper/PerfWrapper.class */
+
public class PerfWrapper {
private static final String X = "x";
private static final String OUTPUT_KEY = "11";
@@ -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