From 528d0da19f5fc3f5c78af3c99a1f2cfa914a27dd Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 01 二月 2024 17:00:08 +0800
Subject: [PATCH] #

---
 zy-asrs-common/src/main/resources/mapper/wms/LocMastMapper.xml |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/zy-asrs-common/src/main/resources/mapper/wms/LocMastMapper.xml b/zy-asrs-common/src/main/resources/mapper/wms/LocMastMapper.xml
index 5ff005e..626241e 100644
--- a/zy-asrs-common/src/main/resources/mapper/wms/LocMastMapper.xml
+++ b/zy-asrs-common/src/main/resources/mapper/wms/LocMastMapper.xml
@@ -2,4 +2,37 @@
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.zy.asrs.common.wms.mapper.LocMastMapper">
 
+    <select id="queryFreeLocMast2" resultType="com.zy.asrs.common.wms.entity.LocMast">
+        select *
+        from common_loc_mast
+        where 1=1
+        and loc_sts='O'
+        <if test="locType1 != null">
+            and loc_type1 = #{locType1}
+        </if>
+        <if test="rowBeg != null">
+            and row1 >= #{rowBeg}
+        </if>
+        <if test="rowEnd != null">
+            and row1 &lt;= #{rowEnd}
+        </if>
+        <if test="bayBeg != null">
+            and bay1 >= #{bayBeg}
+        </if>
+        <if test="bayEnd != null">
+            and bay1 &lt;= #{bayEnd}
+        </if>
+        <if test="levBeg != null">
+            and lev1 >= #{levBeg}
+        </if>
+        <if test="levEnd != null">
+            and lev1 &lt;= #{levEnd}
+        </if>
+        <if test="hostId != null">
+            and host_id = #{hostId}
+        </if>
+--         and loc_no not in ('0100101')
+        order by loc_sts desc ,lev1 asc,bay1 asc
+    </select>
+
 </mapper>

--
Gitblit v1.9.1