From 4ba63e6424b4091ec74a74d4562cc776efb516f4 Mon Sep 17 00:00:00 2001 From: pjb <pjb123456> Date: 星期一, 21 七月 2025 09:47:49 +0800 Subject: [PATCH] 手动完成空桶库任务问题修复 --- src/main/java/com/zy/service/impl/MainServiceImpl.java | 32 +++++++++++++++++--------------- 1 files changed, 17 insertions(+), 15 deletions(-) diff --git a/src/main/java/com/zy/service/impl/MainServiceImpl.java b/src/main/java/com/zy/service/impl/MainServiceImpl.java index 23b5831..870fe75 100644 --- a/src/main/java/com/zy/service/impl/MainServiceImpl.java +++ b/src/main/java/com/zy/service/impl/MainServiceImpl.java @@ -1155,21 +1155,23 @@ // 绌烘《鍏ュ簱瀹屾垚锛屽厛瀹屾垚瀵瑰簲搴撲綅缁勪换鍔� if(wrkMast.getWorkNoOther() != 0 ){ WrkMast wrkMast1 = wrkMastService.selectByWrkNo(wrkMast.getWorkNoOther()); - // 浜ゆ崲搴撲綅鍙� - String locNo = wrkMast.getLocNo(); - wrkMast.setLocNo(wrkMast1.getLocNo()); - // 浜ゆ崲鍏ュ簱鏃堕棿锛屾彁鍙栧簱瀛樻椂鎸夐『搴忓厛娴呭悗娣� - Date ioTime = wrkMast.getIoTime(); - if(locNo.startsWith("10")) { - wrkMast.setIoTime(wrkMast1.getIoTime()); - wrkMast1.setIoTime(ioTime); + if (wrkMast1 != null) { + // 浜ゆ崲搴撲綅鍙� + String locNo = wrkMast.getLocNo(); + wrkMast.setLocNo(wrkMast1.getLocNo()); + // 浜ゆ崲鍏ュ簱鏃堕棿锛屾彁鍙栧簱瀛樻椂鎸夐『搴忓厛娴呭悗娣� + Date ioTime = wrkMast.getIoTime(); + if(locNo.startsWith("10")) { + wrkMast.setIoTime(wrkMast1.getIoTime()); + wrkMast1.setIoTime(ioTime); + } + wrkMast1.setLocNo(locNo); + wrkMast1.setCrnEndTime(now); + wrkMast1.setModiTime(now); + wrkMast1.setWrkSts(4L); + wrkMast1.setWorkNoOther(0); + wrkMastMapper.updateById(wrkMast1); } - wrkMast1.setLocNo(locNo); - wrkMast1.setCrnEndTime(now); - wrkMast1.setModiTime(now); - wrkMast1.setWrkSts(4L); - wrkMast1.setWorkNoOther(0); - wrkMastMapper.updateById(wrkMast1); } wrkMast.setCrnEndTime(now); wrkMast.setModiTime(now); @@ -1631,7 +1633,7 @@ } } // 淇敼婧愬簱浣嶇姸鎬� - if (shallowLoc.getLocSts().equals("D") || shallowLoc.getLocSts().equals("M") || shallowLoc.getLocSts().equals("Z")) { + if (shallowLoc.getLocSts().equals("F") || shallowLoc.getLocSts().equals("M") || shallowLoc.getLocSts().equals("Z")) { shallowLoc.setLocSts("R"); // R.鍑哄簱棰勭害 shallowLoc.setModiTime(new Date()); if (!locMastService.updateById(shallowLoc)) { -- Gitblit v1.9.1