#
18516761980
2022-07-22 b743b62c7d57c84d16422841b0b51e85fe53a891
src/main/resources/mapper/WaitPakOutLogMapper.xml
@@ -4,7 +4,7 @@
<mapper namespace="com.slcf.dao.WaitPakOutLogDao">
<!-- mapper不支持sql语句嵌套时,采用sql片段包含方式,解决xml标签问题 -->
<sql id="WaitPakOutLogConditionSql">
<sql id="WaitPakOutLogConditionSql">
      <if test="matnr!=null and matnr!='' ">
         and a.matnr like '%' + #{matnr} + '%'
      </if>
@@ -21,18 +21,18 @@
      </if>
      <if test="begin_date!=null and begin_date!='' ">
         <![CDATA[
         and a.modi_time >= #{begin_date}
         ]]>
      </if>
         and a.modi_time >= #{begin_date}
         ]]>
      </if>
      <if test="end_date!=null and end_date!='' ">
         <![CDATA[
         and a.modi_time <= #{end_date}
         ]]>
      </if>
         and a.modi_time <= #{end_date}
         ]]>
      </if>
</sql>
<select id="queryWaitPakOutLogList" parameterType="com.slcf.bean.WaitPakOutLogCondition" resultType="com.slcf.pojo.WaitPakOutLogBean">
select * from (
select * from (
select *,ROW_NUMBER() OVER(Order by appe_time desc) as rowid
 from cust_wait_pakout_log a
<where>
@@ -57,4 +57,20 @@
<include refid="WaitPakOutLogConditionSql"></include>
</where>
</select>
</mapper>
<!-- 不分页查询所有信息,用于excel导出 -->
<select id="getWaitPakOutLogAll" parameterType="com.slcf.bean.WaitPakOutLogCondition" resultType="com.slcf.pojo.WaitPakOutLogBean">
   select a.*
   from cust_wait_pakout_log a
   <where>
      <![CDATA[
1=1
]]>
      <include refid="WaitPakOutLogConditionSql"></include>
      <![CDATA[
order by a.appe_time desc
]]>
   </where>
</select>
</mapper>