From f08e709773f9801c7e573aa7f6b35aabedfa6f2e Mon Sep 17 00:00:00 2001
From: 18516761980 <56479841@qq.com>
Date: 星期四, 28 七月 2022 15:28:40 +0800
Subject: [PATCH] #
---
src/main/resources/mapper/WaitPakOutMapper.xml | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/WaitPakOutMapper.xml b/src/main/resources/mapper/WaitPakOutMapper.xml
index 4b6b815..7868cc3 100644
--- a/src/main/resources/mapper/WaitPakOutMapper.xml
+++ b/src/main/resources/mapper/WaitPakOutMapper.xml
@@ -43,7 +43,11 @@
</update>
<select id="countEmsNum" resultType="integer">
- select count(*) from cust_wait_pakout where ems_status = 1
+ select count(*) from (select vlpla from cust_wait_pakout where ems_status = 1 group by vlpla) t;
+</select>
+
+<select id="queryWaitOutPak" resultType="com.slcf.pojo.WaitPakOutBean">
+ select * from cust_wait_pakout where vlpla = #{vlpla} and matnr = #{matnr}
</select>
<select id="getWaitPakOutCount" parameterType="com.slcf.bean.WaitPakOutCondition" resultType="Integer">
@@ -55,4 +59,20 @@
<include refid="WaitPakOutConditionSql"></include>
</where>
</select>
+
+ <!-- 涓嶅垎椤垫煡璇㈡墍鏈変俊鎭紝鐢ㄤ簬excel瀵煎嚭 -->
+ <select id="getWaitPakOutAll" parameterType="com.slcf.bean.WaitPakOutCondition" resultType="com.slcf.pojo.WaitPakOutBean">
+ select a.*
+ from cust_wait_pakout a
+ <where>
+ <![CDATA[
+1=1
+]]>
+ <include refid="WaitPakOutConditionSql"></include>
+ <![CDATA[
+order by a.appe_time desc
+]]>
+ </where>
+ </select>
+
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1