From c5588f43f8d7ebd8a982f95c8d265a520d5e0628 Mon Sep 17 00:00:00 2001
From: mrzhssss <pro6@qq.com>
Date: 星期二, 30 八月 2022 08:24:45 +0800
Subject: [PATCH] #

---
 src/main/resources/mapper/WaitPakOutMapper.xml |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/src/main/resources/mapper/WaitPakOutMapper.xml b/src/main/resources/mapper/WaitPakOutMapper.xml
index 245bf1b..7868cc3 100644
--- a/src/main/resources/mapper/WaitPakOutMapper.xml
+++ b/src/main/resources/mapper/WaitPakOutMapper.xml
@@ -43,7 +43,7 @@
 </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">
@@ -59,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