#
18516761980
2022-07-22 b743b62c7d57c84d16422841b0b51e85fe53a891
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>