From fa8ac2c8675f3b461d518a19b9f9da184363930c Mon Sep 17 00:00:00 2001
From: lsh <1>
Date: 星期日, 20 八月 2023 23:44:35 +0800
Subject: [PATCH] #5、7堆垛机空库位限制

---
 src/main/java/com/zy/asrs/mapper/LocMastMapper.java |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/zy/asrs/mapper/LocMastMapper.java b/src/main/java/com/zy/asrs/mapper/LocMastMapper.java
index 57c635b..f509034 100644
--- a/src/main/java/com/zy/asrs/mapper/LocMastMapper.java
+++ b/src/main/java/com/zy/asrs/mapper/LocMastMapper.java
@@ -13,9 +13,16 @@
 @Repository
 public interface LocMastMapper extends BaseMapper<LocMast> {
 
-    LocMast queryFreeLocMast(@Param("row") Integer row);
+    LocMast queryFreeLocMast(@Param("row") Integer row, @Param("locType1") Short locType1);
 
     @Select("select loc_no from asr_loc_mast where 1=1 and loc_sts = 'O' and crn_no = #{crnNo}")
     List<String> queryGroupEmptyStock(Integer crnNo);
 
+    @Select("select count(*) as count from asr_loc_mast where 1=1 and loc_sts = 'O' and loc_type1 = #{locType1} and crn_no = #{crnNo}")
+    Integer selectEmptyLocCount(@Param("locType1") Short locType1, @Param("crnNo") Integer crnNo);
+
+    List<LocMast> queryShallowLocFMast(@Param("crnNo") Integer crnNo);
+
+    LocMast queryNeedMoveShallLoc(Integer crnNo);
+    LocMast queryNeedMoveShallLocD(Integer crnNo);
 }

--
Gitblit v1.9.1