From 423b61bfb18ceab430303bada28f93631f0e8392 Mon Sep 17 00:00:00 2001
From: zhanzhiqin <895896009@qq.com>
Date: 星期五, 12 八月 2022 16:05:17 +0800
Subject: [PATCH] 充电桩
---
ximon-admin/src/main/java/com/sandu/ximon/admin/service/C3mReportErrorService.java | 12 +-----------
1 files changed, 1 insertions(+), 11 deletions(-)
diff --git a/ximon-admin/src/main/java/com/sandu/ximon/admin/service/C3mReportErrorService.java b/ximon-admin/src/main/java/com/sandu/ximon/admin/service/C3mReportErrorService.java
index 6004160..6fe18c8 100644
--- a/ximon-admin/src/main/java/com/sandu/ximon/admin/service/C3mReportErrorService.java
+++ b/ximon-admin/src/main/java/com/sandu/ximon/admin/service/C3mReportErrorService.java
@@ -32,17 +32,7 @@
public void saveReportError(A5C3ErrorCodeReportInnerFrame codeRespInnerFrame) {
C3mReportError c3MReportError = new C3mReportError();
c3MReportError.setC3Mac(codeRespInnerFrame.getDestinationAddress());
- c3MReportError.setErrorCode(codeRespInnerFrame.getErrorCode());
-
- StringBuilder sb = new StringBuilder();
- Integer errorCode = codeRespInnerFrame.getErrorCode();
- C3ErrorEnum[] values = C3ErrorEnum.values();
- for (C3ErrorEnum value : values) {
- if ((value.getCode() & errorCode) > 0) {
- sb.append(value.getMessage());
- }
- }
- c3MReportError.setErrorMsg(sb.toString());
+ c3MReportError.setErrorMsg(codeRespInnerFrame.getErrorMessage());
save(c3MReportError);
}
--
Gitblit v1.9.3