From 5e61001f8678d26ffdf230e640b32c3632220d58 Mon Sep 17 00:00:00 2001
From: ZY <zc>
Date: 星期二, 05 八月 2025 10:05:30 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/xgmFlWcs' into xgmFlWcs

---
 src/main/java/com/zy/common/model/LocTypeDto.java |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/zy/common/model/LocTypeDto.java b/src/main/java/com/zy/common/model/LocTypeDto.java
index bf782d9..4ca1df1 100644
--- a/src/main/java/com/zy/common/model/LocTypeDto.java
+++ b/src/main/java/com/zy/common/model/LocTypeDto.java
@@ -19,17 +19,30 @@
     // 杞婚噸绫诲瀷{0:鏈煡,1:杞诲簱浣�,2:閲嶅簱浣峿
     private Short locType3;
 
+    private Integer siteId;
+
     public LocTypeDto() {
     }
 
+    public LocTypeDto(Short locType1, Short locType2, Short locType3) {
+        this.locType1 = locType1;
+        this.locType2 = locType2;
+        this.locType3 = locType3;
+    }
+
     public LocTypeDto(StaProtocol staProtocol) {
+        if (staProtocol.isLow()) {
+            this.locType1 = 1; // 浣庡簱浣�
+        }else {
+            this.locType1 = 2; // 楂樺簱浣�
+        }
 //        if (staProtocol.isHigh() == staProtocol.isLow()) {
 //            throw new CoolException("plc楂樹綆妫�娴嬪紓甯�");
 //        }
-//        if (staProtocol.isLow()) {
-//            this.locType1 = 1; // 浣庡簱浣�
-//        } else {
+//        if (staProtocol.getSiteId() == 106 || staProtocol.getSiteId() == 159){
 //            this.locType1 = 2; // 楂樺簱浣�
+//        }else {
+//            this.locType1 = 1; // 浣庡簱浣�
 //        }
     }
 

--
Gitblit v1.9.1