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 | 28 ++++++++++++++++++++++++++++
1 files changed, 28 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/WaitPakOutMapper.xml b/src/main/resources/mapper/WaitPakOutMapper.xml
index 65dc579..7868cc3 100644
--- a/src/main/resources/mapper/WaitPakOutMapper.xml
+++ b/src/main/resources/mapper/WaitPakOutMapper.xml
@@ -38,6 +38,18 @@
</where>
</select>
+<update id="waitPakOutSetEms">
+ update cust_wait_pakout set ems_status = 1 where lgnum=#{lgnum} and tanum = #{tanum} and tapos = #{tapos}
+</update>
+
+<select id="countEmsNum" resultType="integer">
+ 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">
select count(1) from cust_wait_pakout a
<where>
@@ -47,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