You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.4 KiB
XML
34 lines
1.4 KiB
XML
11 months ago
|
<?xml version="1.0" encoding="UTF-8"?>
|
||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||
|
<mapper namespace="com.glxp.api.dao.collect.IoCollectOrderMapper">
|
||
|
<select id="filterList" parameterType="com.glxp.api.req.collect.CollectOrderRequest"
|
||
|
resultType="com.glxp.api.res.collect.IoCollectOrderResponse">
|
||
|
SELECT io_collect_order.*
|
||
|
FROM io_collect_order
|
||
|
<where>
|
||
|
<if test="billNo != '' and billNo != null">
|
||
|
AND billNo LIKE concat('%', #{billNo}, '%')
|
||
|
</if>
|
||
|
<if test="busType != null and busType != ''">
|
||
|
AND busType = #{busType}
|
||
|
</if>
|
||
|
<if test="fromType != null and fromType != ''">
|
||
|
AND fromType = #{fromType}
|
||
|
</if>
|
||
|
<if test="fromCorp != '' and fromCorp != null">
|
||
|
AND fromCorp LIKE concat('%', #{fromCorp}, '%')
|
||
|
</if>
|
||
|
<if test="collectCode != null and collectCode != ''">
|
||
|
AND collectCode = #{collectCode}
|
||
|
</if>
|
||
|
<if test="busType != null and busType != ''">
|
||
|
AND busType = #{busType}
|
||
|
</if>
|
||
|
<if test="workPlaceCode != null and workPlaceCode != ''">
|
||
|
AND workPlaceCode = #{workPlaceCode}
|
||
|
</if>
|
||
|
</where>
|
||
|
order by collectTime desc
|
||
|
</select>
|
||
|
</mapper>
|