From c83101eb62f5d4906b9c01ceea6b21a37f9e84d8 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期二, 18 十一月 2025 09:24:53 +0800
Subject: [PATCH] bug修复

---
 ycl-server/src/main/java/com/ycl/platform/service/impl/ReportServiceImpl.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/ycl-server/src/main/java/com/ycl/platform/service/impl/ReportServiceImpl.java b/ycl-server/src/main/java/com/ycl/platform/service/impl/ReportServiceImpl.java
index c3eff9b..e9e1726 100644
--- a/ycl-server/src/main/java/com/ycl/platform/service/impl/ReportServiceImpl.java
+++ b/ycl-server/src/main/java/com/ycl/platform/service/impl/ReportServiceImpl.java
@@ -289,7 +289,13 @@
                         sb.append(s).append("銆�");
                     }
                 });
-                item.setErrorType(sb.substring(0, sb.length() - 1));
+                if (sb.length() > 0) {
+                    item.setErrorType(sb.substring(0, sb.length() - 1));
+                } else {
+                    // 鏃犲尮閰嶆爣绛炬椂锛屽彲璁句负绌哄瓧绗︿覆鎴栦繚鐣欏師濮� errorType
+                    item.setErrorType("");
+                    // 鎴� item.setErrorType(item.getErrorType()); // 淇濈暀鍘熷缂栫爜
+                }
             }
         });
         log.info("缁勮淇℃伅鑰楁椂锛歿}ms", dictEndTime);

--
Gitblit v1.8.0