From 500883549dd0d482ced51a404f8ecbe0be4705fc Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期三, 13 三月 2024 09:57:40 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java | 9 ++++++--- 1 files changed, 6 insertions(+), 3 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 d44b9c2..8017176 100644 --- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java @@ -992,11 +992,14 @@ } //鍒ゆ柇鏈鍛戒护鏄惁鎵ц瀹屾垚 - CommandInfo commandInfo = commandInfos.get(commandInfos.size() - 1); - if (commandInfo.getCommandStatus() != CommandStatusType.COMPLETE.id) { - continue;//鎸囦护鏈畬鎴� + if (!commandInfos.isEmpty()){ + CommandInfo commandInfo = commandInfos.get(commandInfos.size() - 1); + if (commandInfo.getCommandStatus() != CommandStatusType.COMPLETE.id) { + continue;//鎸囦护鏈畬鎴� + } } + Date now = new Date(); //鎸囦护宸插畬鎴愶紝鏇存柊浠诲姟 if (taskWrk.getIoType() == 1) { -- Gitblit v1.9.1