From b4e0f827567f8d5ad4a1ff5caa22675cbc165b88 Mon Sep 17 00:00:00 2001
From: lsh <lsh123456>
Date: 星期三, 11 六月 2025 10:27:31 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/core/model/protocol/StaProtocol.java |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/core/model/protocol/StaProtocol.java b/src/main/java/com/zy/core/model/protocol/StaProtocol.java
index 1fb2cc4..1a638d1 100644
--- a/src/main/java/com/zy/core/model/protocol/StaProtocol.java
+++ b/src/main/java/com/zy/core/model/protocol/StaProtocol.java
@@ -78,17 +78,33 @@
     // 鎵爜澶辫触
     private boolean barcodeErr;
 
+    // Super鏈夋棤淇℃伅
+    private boolean loadingSuper = true;
+    private boolean reportSign = false;
+    private int reportSignCount = 1;
+
     public BasDevp toSqlModel(){
         BasDevp basDevp = new BasDevp();
         basDevp.setDevNo(siteId);
         basDevp.setWrkNo(workNo);
         basDevp.setAutoing(autoing?"Y":"N");
         basDevp.setLoading(loading?"Y":"N");
+        basDevp.setLoadingSuper(loadingSuper?"Y":"N");
         basDevp.setEmptyMk(emptyMk?"Y":"N");
-        if (basDevp.getLoading().equals("N") && basDevp.getAutoing().equals("Y") && (basDevp.getWrkNo()==0 || !basDevp.getWrkNo().equals(basDevp.getWrkNo1()))){
-            basDevp.setWrkNo1(workNo);
+        if (autoing && !loadingSuper && !loading){
             basDevp.setReportSign(0);
         }
+        if (siteId == 213 && autoing && (loadingSuper || loading)){
+            basDevp.setReportSign(1);
+        }
+        if (reportSign){
+            basDevp.setReportSign(0);
+            reportSignCount++;
+        }
+        if (reportSignCount>3){
+            reportSign = false;
+            reportSignCount = 0;
+        }
         basDevp.setInEnable(inEnable?"Y":"N");
         basDevp.setOutEnable(outEnable?"Y":"N");
         basDevp.setLocType1((short) 0);  // 楂樹綆绫诲瀷{0:鏈煡,1:浣庡簱浣�,2:楂樺簱浣峿

--
Gitblit v1.9.1