From 4647be24b04e5b1a5ece2aecadcf43afb8cd6eb6 Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期三, 03 九月 2025 09:33:52 +0800
Subject: [PATCH] #

---
 src/main/resources/mapper/LocDetlMapper.xml |   42 +++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 41 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/LocDetlMapper.xml b/src/main/resources/mapper/LocDetlMapper.xml
index b04bb94..42dec5e 100644
--- a/src/main/resources/mapper/LocDetlMapper.xml
+++ b/src/main/resources/mapper/LocDetlMapper.xml
@@ -44,6 +44,10 @@
         <result column="appe_user" property="appeUser" />
         <result column="appe_time" property="appeTime" />
         <result column="memo" property="memo" />
+        <result column="temp1" property="temp1" />
+        <result column="temp2" property="temp2" />
+        <result column="temp3" property="temp3" />
+        <result column="temp4" property="temp4" />
     </resultMap>
 
     <sql id="batchSeq">
@@ -217,6 +221,15 @@
 <!--                and (a.batch IS NULL OR a.batch = '')-->
 <!--            </otherwise>-->
 <!--        </choose>-->
+        <if test="supp != null and supp != ''">
+            and a.supp = #{supp}
+        </if>
+        <if test="temp1 != null and temp1 != ''">
+            and a.temp1 = #{temp1}
+        </if>
+        <if test="temp2 != null and temp2 != ''">
+            and a.temp2 = #{temp2}
+        </if>
         <if test="batch != null and batch != ''">
             and a.batch = #{batch}
         </if>
@@ -307,7 +320,7 @@
         where 1=1
         group by matnr,batch
     </select>
-    <select id="sum" resultType="java.lang.Integer">
+    <select id="sum" resultType="java.lang.Double">
         SELECT SUM(anfme) FROM asr_loc_detl
     </select>
     <select id="unreason" resultMap="BaseResultMap">
@@ -410,6 +423,15 @@
         and b.loc_sts = 'F'
         and a.matnr = #{matnr}
         and b.crn_no in (8,9)
+        <if test="supp != null and supp != ''">
+            and a.supp = #{supp}
+        </if>
+        <if test="temp1 != null and temp1 != ''">
+            and a.temp1 = #{temp1}
+        </if>
+        <if test="temp2 != null and temp2 != ''">
+            and a.temp2 = #{temp2}
+        </if>
         <if test="batch != null and batch != ''">
             and a.batch = #{batch}
         </if>
@@ -499,6 +521,15 @@
         <!--                and (a.batch IS NULL OR a.batch = '')-->
         <!--            </otherwise>-->
         <!--        </choose>-->
+        <if test="supp != null and supp != ''">
+            and a.supp = #{supp}
+        </if>
+        <if test="temp1 != null and temp1 != ''">
+            and a.temp1 = #{temp1}
+        </if>
+        <if test="temp2 != null and temp2 != ''">
+            and a.temp2 = #{temp2}
+        </if>
         <if test="batch != null and batch != ''">
             and a.batch = #{batch}
         </if>
@@ -587,6 +618,15 @@
         <!--                and (a.batch IS NULL OR a.batch = '')-->
         <!--            </otherwise>-->
         <!--        </choose>-->
+        <if test="supp != null and supp != ''">
+            and a.supp = #{supp}
+        </if>
+        <if test="temp1 != null and temp1 != ''">
+            and a.temp1 = #{temp1}
+        </if>
+        <if test="temp2 != null and temp2 != ''">
+            and a.temp2 = #{temp2}
+        </if>
         <if test="batch != null and batch != ''">
             and a.batch = #{batch}
         </if>

--
Gitblit v1.9.1