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/WrkMastMapper.xml | 40 ++++++++++++++++++++++++++++++++++++++++
1 files changed, 40 insertions(+), 0 deletions(-)
diff --git a/zy-asrs-common/src/main/resources/mapper/wms/WrkMastMapper.xml b/zy-asrs-common/src/main/resources/mapper/wms/WrkMastMapper.xml
index 9476e30..be000f9 100644
--- a/zy-asrs-common/src/main/resources/mapper/wms/WrkMastMapper.xml
+++ b/zy-asrs-common/src/main/resources/mapper/wms/WrkMastMapper.xml
@@ -15,4 +15,44 @@
order by io_time,wrk_no asc
</select>
+ <select id="selectSameLevMatnrs" resultType="com.zy.asrs.common.wms.entity.WrkMast">
+ select m.loc_no
+ from wms_wrk_mast m,
+ wms_wrk_detl d,
+ common_loc_mast lm
+ where m.id = d.wrk_mast_id
+ and m.loc_no = lm.loc_no
+ and m.host_id = lm.host_id
+ and io_type = 1
+ and wrk_sts < 99
+ and d.matnr = #{matnr}
+ <if test="batch != null and batch != ''">
+ and d.batch = #{batch}
+ </if>
+ <if test="hostId != null">
+ and lm.host_id = #{hostId}
+ </if>
+ <if test="locRangeDto != null">
+ <if test="locRangeDto.startRow">
+ and lm.row1 >= #{locRangeDto.startRow}
+ </if>
+ <if test="locRangeDto.targetRow">
+ and lm.row1 <= #{locRangeDto.targetRow}
+ </if>
+ <if test="locRangeDto.startBay">
+ and lm.bay1 >= #{locRangeDto.startBay}
+ </if>
+ <if test="locRangeDto.targetBay">
+ and lm.bay1 <= #{locRangeDto.targetBay}
+ </if>
+ <if test="locRangeDto.startLev">
+ and lm.lev1 >= #{locRangeDto.startLev}
+ </if>
+ <if test="locRangeDto.targetLev">
+ and lm.lev1 <= #{locRangeDto.targetLev}
+ </if>
+ </if>
+ ORDER BY m.wrk_no desc;
+ </select>
+
</mapper>
--
Gitblit v1.9.1