From e2a14112a81740481623dc16bbd1301432ce34b0 Mon Sep 17 00:00:00 2001 From: L <L@132> Date: 星期三, 27 八月 2025 13:15:22 +0800 Subject: [PATCH] * --- src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java | 22 ++++++++++++++-------- 1 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java index 4b0d7d3..035451e 100644 --- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java @@ -763,17 +763,23 @@ } List<TaskWrkLog> taskWrkLogs = taskWrkLogService.selectList(new EntityWrapper<TaskWrkLog>().eq("CRN_NO",crnProtocol.getLaneNo()).orderBy("COMPLETE_TIME",false)); if (!taskWrkLogs.isEmpty()) { - TaskWrkLog taskWrkLog = taskWrkLogs.get(0); - Date completeTime = taskWrkLog.getCompleteTime(); - if (completeTime==null){ - completeTime = taskWrkLog.getCancelTime(); + boolean signT = false; + for (TaskWrkLog taskWrkLog : taskWrkLogs){ + Date completeTime = taskWrkLog.getCompleteTime(); if (completeTime==null){ - completeTime = taskWrkLog.getModiTime(); + continue; + } + long differenceInSeconds = TimeCalculatorUtils.differenceInMilliseconds(completeTime, new Date()); + if (differenceInSeconds <= 60*2*1000) { + signT = true; + break; + } else { + signT = false; + break; } } - long differenceInSeconds = TimeCalculatorUtils.differenceInMilliseconds(completeTime, new Date()); - if (differenceInSeconds <= 60*10*1000) { - return; + if (signT){ + continue; } } // 鍛戒护涓嬪彂鍖� -------------------------------------------------------------------------- -- Gitblit v1.9.1