From 50907fb5ac01267870819f2cbd8632f9776835a7 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期一, 17 六月 2024 16:33:25 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/task/handler/AutoMoveHandler.java | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/asrs/task/handler/AutoMoveHandler.java b/src/main/java/com/zy/asrs/task/handler/AutoMoveHandler.java index 1d2ebdc..dc7ce58 100644 --- a/src/main/java/com/zy/asrs/task/handler/AutoMoveHandler.java +++ b/src/main/java/com/zy/asrs/task/handler/AutoMoveHandler.java @@ -196,7 +196,14 @@ } private ReturnT<String> doHandMove2(AgvWrkMast agvWrkMast) { Date now = new Date(); - AgvBasDevp devpNo = agvCommonService.getDevpNo(3, 1, "Y", "Y"); + String lev1 = agvWrkMast.getSourceLocNo().substring(agvWrkMast.getSourceLocNo().length() - 4).substring(0, 2); + AgvBasDevp devpNo = new AgvBasDevp(); + if ("01".equals(lev1)) { + devpNo = agvCommonService.getDevpNo(3, 1, "Y", "Y"); + } else { + devpNo = agvCommonService.getDevpNo(3, 5, "Y", "Y"); + } + if (Cools.isEmpty(devpNo)) { throw new CoolException("鏆傛棤绌洪棽鎺ラ┏浣�"); } -- Gitblit v1.9.1