From db6ebb25325838edb5e8bb9c55388341935628b8 Mon Sep 17 00:00:00 2001
From: cl <418351270@qq.com>
Date: 星期二, 13 八月 2024 16:42:52 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 jcdm-main/src/main/java/com/jcdm/main/bs/formulaChild/controller/BsFormulaChildInfoController.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/jcdm-main/src/main/java/com/jcdm/main/bs/formulaChild/controller/BsFormulaChildInfoController.java b/jcdm-main/src/main/java/com/jcdm/main/bs/formulaChild/controller/BsFormulaChildInfoController.java
index a3f0f99..ce5def6 100644
--- a/jcdm-main/src/main/java/com/jcdm/main/bs/formulaChild/controller/BsFormulaChildInfoController.java
+++ b/jcdm-main/src/main/java/com/jcdm/main/bs/formulaChild/controller/BsFormulaChildInfoController.java
@@ -53,9 +53,11 @@
     @GetMapping("/unfinishedProcess")
     public AjaxResult unfinishedProcess(BsFormulaChildInfo bsFormulaChildInfo)
     {
+        String thoroughfare = Constants.thoroughfareMap.get(bsFormulaChildInfo.getProcessesCode());//鑾峰彇閫氶亾
         try {
-            String str = "MOZU1."+bsFormulaChildInfo.getProcessesCode()+".RecordDataDone";
-            miloService.writeToOpcShort(ReadWriteEntity.builder().identifier(str).value(bsFormulaChildInfo.getRecordDataDone()).build());
+//            String str = "MOZU1."+bsFormulaChildInfo.getProcessesCode()+".RecordDataDone";
+//            miloService.writeToOpcShort(ReadWriteEntity.builder().identifier(str).value(bsFormulaChildInfo.getRecordDataDone()).build());
+            miloService.writeToOpcShort(ReadWriteEntity.builder().identifier(thoroughfare+"."+bsFormulaChildInfo.getProcessesCode()+".RecordDataDone").value(bsFormulaChildInfo.getRecordDataDone()).build());
         } catch (Exception e) {
             throw new RuntimeException(e);
         }

--
Gitblit v1.9.3