From 645da5e4e48dd94b760ea4dcbf80e22bf2a3f33c Mon Sep 17 00:00:00 2001
From: skyouc
Date: 星期六, 11 一月 2025 17:20:08 +0800
Subject: [PATCH] #添加播种站点功能
---
zy-asrs-wms/src/main/resources/mapper/asrs/ViewLocDetlMapper.xml | 17 +++++++++++++----
1 files changed, 13 insertions(+), 4 deletions(-)
diff --git a/zy-asrs-wms/src/main/resources/mapper/asrs/ViewLocDetlMapper.xml b/zy-asrs-wms/src/main/resources/mapper/asrs/ViewLocDetlMapper.xml
index 149b56b..d9f8a0c 100644
--- a/zy-asrs-wms/src/main/resources/mapper/asrs/ViewLocDetlMapper.xml
+++ b/zy-asrs-wms/src/main/resources/mapper/asrs/ViewLocDetlMapper.xml
@@ -3,10 +3,19 @@
<mapper namespace="com.zy.asrs.wms.asrs.mapper.ViewLocDetlMapper">
<select id="queryStock" resultType="map">
- select * from view_man_loc_detl ld
- where matnr = #{matnr}
- and freeze = 0
- and batch = #{batch}
+ SELECT * FROM
+ (
+ SELECT id, loc_id, loc_no, mat_id, IFNULL(type_id, 4) AS type_id, work_qty, matnr, order_no, batch, anfme, host_id, memo,deleted, freeze
+ FROM
+ view_man_loc_detl
+ ) t
+ WHERE t.deleted = 0 AND t.freeze = 0
+ <if test="matnr != null and matnr != ''">
+ AND t.matnr = #{matnr}
+ </if>
+ <if test="batch != null and batch != ''">
+ AND t.batch = #{batch}
+ </if>
<if test="param!=null and param.size()>0">
<foreach item="item" collection="param" index="index">
<if test="item.value!=null and item.value != ''">
--
Gitblit v1.9.1