From 5ee8d702138b67a8070e850ba622aa4b07d64fb9 Mon Sep 17 00:00:00 2001
From: dubin <bindu_bean@163.com>
Date: 星期四, 30 十月 2025 13:00:08 +0800
Subject: [PATCH] #1
---
src/main/resources/mapper/OrderDetlMapper.xml | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/main/resources/mapper/OrderDetlMapper.xml b/src/main/resources/mapper/OrderDetlMapper.xml
index 14f5809..f7ae4f7 100644
--- a/src/main/resources/mapper/OrderDetlMapper.xml
+++ b/src/main/resources/mapper/OrderDetlMapper.xml
@@ -58,6 +58,7 @@
<result column="ware_id" property="wareId" />
<result column="ware_mame" property="wareName" />
<result column="packing" property="packing" />
+ <result column="det_id" property="detId"/>
</resultMap>
<select id="selectItem" resultMap="BaseResultMap">
@@ -80,9 +81,14 @@
where 1=1
and order_no = #{orderNo}
and matnr = #{matnr}
- <if test="batch!=null and batch!='' ">
- and batch = #{batch}
- </if>
+ <choose>
+ <when test="batch != null and batch != ''">
+ and batch = #{batch}
+ </when>
+ <otherwise>
+ and (batch IS NULL OR batch = '')
+ </otherwise>
+ </choose>
</select>
<select id="selectWorkingDetls" resultMap="BaseResultMap">
--
Gitblit v1.9.1