This commit is contained in:
xy
2024-12-23 10:50:01 +08:00
parent ac24724ee8
commit f0ffb63cff

View File

@@ -1428,7 +1428,7 @@ public class CustomReportServiceImpl implements CustomReportService {
// 遍历当前Map的键值对
for (Map.Entry<String, Object> entry : map.entrySet()) {
String key = entry.getKey();
if (!key.equals("time")) {
if (Objects.nonNull(entry.getValue()) && !key.equals("time")) {
double value = (double) entry.getValue();
// 检查结果Map中是否已包含该键
if (!resultMap.containsKey(key) || (double) resultMap.get(key) > value) {
@@ -1443,7 +1443,7 @@ public class CustomReportServiceImpl implements CustomReportService {
// 遍历当前Map的键值对
for (Map.Entry<String, Object> entry : map.entrySet()) {
String key = entry.getKey();
if (!key.equals("time")) {
if (Objects.nonNull(entry.getValue()) && !key.equals("time")) {
double value = (double) entry.getValue();
// 检查结果Map中是否已包含该键
if (!resultMap.containsKey(key) || (double) resultMap.get(key) < value) {
@@ -1461,7 +1461,7 @@ public class CustomReportServiceImpl implements CustomReportService {
// 遍历当前Map的键值对
for (Map.Entry<String, Object> entry : map.entrySet()) {
String key = entry.getKey();
if (!key.equals("time")) {
if (Objects.nonNull(entry.getValue()) && !key.equals("time")) {
double value = (double) entry.getValue();
// 更新累计和