| | |
| | | <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> |
| | |
| | | </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> |
| | |
| | | <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> |