From e9af4d03a4f64dec62ab180640de9d26d0f2b8d7 Mon Sep 17 00:00:00 2001
From: Fancy <Fancy.fx@outlook.com>
Date: 星期二, 16 七月 2024 17:28:36 +0800
Subject: [PATCH] fix assy queryByDeviceNo method

---
 pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/workOrder/WorkOrderSv.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/workOrder/WorkOrderSv.java b/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/workOrder/WorkOrderSv.java
index 0b0a0cb..bd51d42 100644
--- a/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/workOrder/WorkOrderSv.java
+++ b/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/workOrder/WorkOrderSv.java
@@ -15,6 +15,7 @@
 import com.dy.pmsGlobal.pojoPr.PrProductionNode;
 import com.dy.pmsGlobal.pojoSta.StaAssemblyWorkHistory;
 import com.dy.pmsGlobal.pojoSta.StaAssemblyWorkLast;
+import com.dy.pmsGlobal.util.QrCodeConstant;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.BeanUtils;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -220,7 +221,7 @@
             if (product != null) {
                 result.setProId(product.getId());
                 result.setProName(product.getName());
-                String devicePrefix = "110" + product.getCode() + assyPlan.getBatchNo();
+                String devicePrefix = QrCodeConstant.TypeProduct + product.getCode() + assyPlan.getBatchNo();
                 result.setDevicePrefix(devicePrefix);
             }
         }
@@ -308,7 +309,7 @@
         }
         result.setProId(product.getId());
         result.setProName(product.getName());
-        String devicePrefix = "110" + product.getCode() + assyPlan.getBatchNo();
+        String devicePrefix = QrCodeConstant.TypeProduct + product.getCode() + assyPlan.getBatchNo();
         result.setDevicePrefix(devicePrefix);
         return result;
     }
@@ -326,6 +327,7 @@
         // 淇濆瓨history
         StaAssemblyWorkHistory history = new StaAssemblyWorkHistory();
         BeanUtils.copyProperties(workLast, history);
+        history.setWorkId(workLast.getId());
         //history.setId(null);
         int count = assemblyWorkHistoryDao.insertSelective(history);
         //鍒犻櫎last

--
Gitblit v1.8.0