From e1ab30550f05d173d71c24998bc538d064fa9725 Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期三, 31 五月 2023 13:21:42 +0800
Subject: [PATCH] 搜索库位,优先找偏外侧

---
 src/main/java/com/zy/asrs/service/impl/LocMastServiceImpl.java |    5 ++++-
 1 files changed, 4 insertions(+), 1 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 4c3dbe9..9047436 100644
--- a/src/main/java/com/zy/asrs/service/impl/LocMastServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/LocMastServiceImpl.java
@@ -215,7 +215,7 @@
     }
 
     @Override
-    public LocMast findEmptyLocMastByLocNos(Short locType1, List<String> locNos) {
+    public List<LocMast> findEmptyLocMastByLocNos(Short locType1, List<String> locNos) {
         return this.baseMapper.findEmptyLocMastByLocNos(locType1, locNos);
     }
 
@@ -231,6 +231,9 @@
 
     @Override
     public List<LocMast> selectByLocNos(List<String> locNos) {
+        if (locNos == null || locNos.size() == 0) {
+            return new ArrayList<LocMast>();
+        }
         return this.baseMapper.selectByLocNos(locNos);
     }
 }

--
Gitblit v1.9.1