From 958883d6f4dac68fcbbccadb4e7f87e963eee0e8 Mon Sep 17 00:00:00 2001
From: zwl <1051256694@qq.com>
Date: 星期三, 09 七月 2025 12:32:40 +0800
Subject: [PATCH] 新增盘点提取库存后可以删除明细
---
zy-asrs-common/src/main/resources/mapper/wms/LocDetlMapper.xml | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/zy-asrs-common/src/main/resources/mapper/wms/LocDetlMapper.xml b/zy-asrs-common/src/main/resources/mapper/wms/LocDetlMapper.xml
index 1bc9fa3..b783b20 100644
--- a/zy-asrs-common/src/main/resources/mapper/wms/LocDetlMapper.xml
+++ b/zy-asrs-common/src/main/resources/mapper/wms/LocDetlMapper.xml
@@ -23,6 +23,9 @@
<if test="map.maktx!=null and map.maktx!='' ">
and a.maktx like '%' + #{map.maktx} + '%'
</if>
+ <if test="map.zpallet!=null and map.zpallet!='' ">
+ and a.zpallet like '%' + #{map.zpallet} + '%'
+ </if>
<if test="map.batch!=null and map.batch!='' ">
and a.batch like '%' + #{map.batch} + '%'
</if>
@@ -70,6 +73,7 @@
</if>
and b.host_id = #{hostId}
and b.loc_sts = 'F'
+ and b.row1 in (1,2,3,4)
order by b.row1
</select>
@@ -111,6 +115,7 @@
where 1=1
and b.loc_sts = 'F'
and b.host_id = #{map.hostId}
+ and b.row1 in (1,2,3,4)
<include refid="stockOutCondition"></include>
</select>
@@ -155,4 +160,15 @@
group by a.matnr
</select>
+ <select id="getStock" resultType="com.zy.asrs.common.domain.dto.ReportStockDto">
+ select loc_no as locNo,count(loc_no) as anfme from
+ (select matnr,count(matnr) counts,loc_no
+ from wms_loc_detl where matnr IN
+ <foreach item="item" collection="matnr" open="(" separator="," close=")">
+ #{item, jdbcType=VARCHAR}
+ </foreach> GROUP BY matnr,loc_no) aa
+ GROUP BY aa.loc_no
+ order by anfme desc
+ </select>
+
</mapper>
--
Gitblit v1.9.1