From 699f449c28b5ad3e9fc1aa37e8ce8234a420d8da Mon Sep 17 00:00:00 2001
From: 刘小明 <liuxm_a@163.com>
Date: 星期三, 31 七月 2024 11:31:26 +0800
Subject: [PATCH] mapper 及xml整理

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

diff --git a/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java b/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java
index b0b5e5c..6d3295e 100644
--- a/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java
+++ b/pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java
@@ -173,7 +173,7 @@
 
         StaDeviceLast deviceLast = buildDeviceLast(params, workLast, deviceList.get(0));
         int count = deviceLast.id == null ? deviceLastDao.insertSelective(deviceLast) :
-                deviceLastDao.updateByPrimaryKeySelective(deviceLast);
+                deviceLastDao.updateByPrimaryKey(deviceLast);
 
         saveDeviceProductionLog(deviceLast);
 
@@ -355,7 +355,7 @@
         StaDeviceLast deviceLast = buildDeviceLast(vo, workLast, vo.deviceNo[0]);
 
         int count = deviceLast.id == null ? deviceLastDao.insertSelective(deviceLast) :
-                deviceLastDao.updateByPrimaryKeySelective(deviceLast);
+                deviceLastDao.updateByPrimaryKey(deviceLast);
         saveDeviceProductionLog(deviceLast);
         boolean isEndNode = nodeDao.isEndNode(preDeviceRecord.currNode);
         if (isEndNode) {
@@ -391,10 +391,10 @@
         }
         StaDeviceLast deviceLast = buildDeviceLast(vo, workLast, vo.deviceNo[0]);
         int count = deviceLast.id == null ? deviceLastDao.insertSelective(deviceLast) :
-                deviceLastDao.updateByPrimaryKeySelective(deviceLast);
+                deviceLastDao.updateByPrimaryKey(deviceLast);
         saveDeviceProductionLog(deviceLast);
         PrProductionNode node = nodeDao.selectByPrimaryKey(workLast.nodeId);
-        if (node.isRecord) {
+        if (node != null && node.isRecord) {
             saveDeviceLife(deviceLast);
         }
         return count;
@@ -473,6 +473,7 @@
     public List<PltProductQualityInspectionItems> getQualityItems(String proId) {
         Map<String, Object> params = new HashMap<>();
         params.put("proId", proId);//item  start  count
+        params.put("disabled", "0");
         //鏌ヨ绗﹀悎鏉′欢鐨勮褰�
         return qualityItemsDao.selectSome(params);
     }
@@ -480,6 +481,7 @@
     public List<PltProductTestInspectionItems> getTestItems(String proId) {
         Map<String, Object> params = new HashMap<>();
         params.put("proId", proId);
+        params.put("disabled", "0");
         return testItemsDao.selectSome(params);
     }
 

--
Gitblit v1.8.0