From 2b97e11ec9159f276fa054b080393e38ab69ba9a Mon Sep 17 00:00:00 2001 From: Junjie <fallin.jie@qq.com> Date: 星期四, 10 八月 2023 10:57:40 +0800 Subject: [PATCH] 检测路径是否可行走。如果路径为目标库位,但不可行走,系统将尝试重新计算路径 --- src/main/java/com/zy/asrs/service/impl/LocMastServiceImpl.java | 29 ++++++++++++++++++++++++----- 1 files changed, 24 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/LocMastServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/LocMastServiceImpl.java index d7ac868..c50356a 100644 --- a/src/main/java/com/zy/asrs/service/impl/LocMastServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/LocMastServiceImpl.java @@ -65,11 +65,30 @@ @Override public Boolean isShuttle(String locNo) { - int row = Utils.getRow(locNo); - if (row >= 2 && row <= 30) { - return Boolean.TRUE; - } - return Boolean.FALSE; +// int row = Utils.getRow(locNo); +// if (row >= 2 && row <= 30) { +// return Boolean.TRUE; +// } + return Boolean.TRUE; } + @Override + public Integer getOutCrnNo(LocMast locMast) { + return 1; + } + + @Override + public LocMast queryByLoc(String locNo) { + return this.baseMapper.queryByLoc(locNo); + } + + @Override + public LocMast queryByQrCode(String qrCodeValue) { + return this.baseMapper.queryByQrCode(qrCodeValue); + } + + @Override + public List<LocMast> selectLocByLev(Integer lev) { + return this.baseMapper.selectLocByLev(lev); + } } -- Gitblit v1.9.1