From 0d50faa5cc0e06887bf78f2609d8222d11c11e20 Mon Sep 17 00:00:00 2001 From: 刘小明 <liuxm_a@163.com> Date: 星期六, 10 八月 2024 10:13:51 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- pms-parent/pms-web-station/src/main/java/com/dy/pmsStation/assemblyStep/AssemblyStepSv.java | 10 ++++------ 1 files changed, 4 insertions(+), 6 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 28deed1..438f790 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 @@ -349,7 +349,7 @@ repairInfo.repairTime = new Date(); repairInfo.repairBy = workLast.userId; repairInfo.repairReason = vo.errorMsg; - if(preDeviceRecord!=null) { + if (preDeviceRecord != null) { repairInfo.fromNode = preDeviceRecord.currNode; } repairInfoDao.insertSelective(repairInfo); @@ -359,11 +359,9 @@ int count = deviceLast.id == null ? deviceLastDao.insertSelective(deviceLast) : deviceLastDao.updateByPrimaryKey(deviceLast); saveDeviceProductionLog(deviceLast); - if(preDeviceRecord.currNode != null){ - boolean isEndNode = nodeDao.isEndNode(preDeviceRecord.currNode); - if (isEndNode) { - saveDeviceLife(deviceLast); - } + //鍙缁忓巻杩囩粨鏉熻妭鐐�,灏变竴鐩磋褰昫evice life + if (preDeviceRecord != null && preDeviceRecord.getOutLineTime() != null) { + saveDeviceLife(deviceLast); } return count; } -- Gitblit v1.8.0