From 792ac2d480d61cf3922c16455b91393e41177182 Mon Sep 17 00:00:00 2001
From: 1 <1>
Date: 星期四, 27 十一月 2025 11:21:16 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/core/thread/SiemensCrnThread.java | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/main/java/com/zy/core/thread/SiemensCrnThread.java b/src/main/java/com/zy/core/thread/SiemensCrnThread.java
index 0f8b410..25658d8 100644
--- a/src/main/java/com/zy/core/thread/SiemensCrnThread.java
+++ b/src/main/java/com/zy/core/thread/SiemensCrnThread.java
@@ -53,6 +53,8 @@
*/
private boolean backHpFlag = false;
+ private Integer errId = 0;
+
public SiemensCrnThread(CrnSlave slave) {
this.slave = slave;
}
@@ -289,7 +291,9 @@
BasCrnErrorLog basCrnErrorLogs;
basCrnErrorLogs = crnProtocol.toSqlModelError();
BasCrnErrorLogService basCrnErrorLogService = SpringUtils.getBean(BasCrnErrorLogService.class);
- basCrnErrorLogService.insert(basCrnErrorLogs);
+ if(basCrnErrorLogService.insert(basCrnErrorLogs)){
+ crnProtocol.setUuid(basCrnErrorLogs.getId().toString());
+ }
crnProtocol.setWriteMk(false);
} catch (Exception ignore) {
log.error(ignore.getMessage());
--
Gitblit v1.9.1