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.
37 lines
1.8 KiB
XML
37 lines
1.8 KiB
XML
<?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.IoSplitDesOrderMapper">
|
|
<select id="filterList" parameterType="com.glxp.api.req.collect.CollectOrderBizRequest"
|
|
resultType="com.glxp.api.res.collect.IoSplitDesOrderResponse">
|
|
SELECT isdo.*,
|
|
sw.workplaceName, swd.busName as busTypeName
|
|
FROM io_split_des_order isdo
|
|
left join sys_workplace sw on isdo.workPlaceCode = sw.workplaceId
|
|
left join sys_workplace_document swd on isdo.busType = swd.documentTypeCode
|
|
|
|
# left join thr_bustype_origin on isdo.busType = thr_bustype_origin.action
|
|
# left join basic_bussiness_type on isdo.busType = basic_bussiness_type.action
|
|
<where>
|
|
<if test="billNo != '' and billNo != null">
|
|
AND billNo LIKE concat('%', #{billNo}, '%')
|
|
</if>
|
|
<if test="busType != null and busType != ''">
|
|
AND isdo.busType = #{busType}
|
|
</if>
|
|
<if test="workPlaceCode != null">
|
|
AND isdo.workPlaceCode = #{workPlaceCode}
|
|
</if>
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
AND date_format(isdo.createTime, '%Y-%m-%d') between date_format(#{startTime}, '%Y-%m-%d') and
|
|
date_format(#{endTime}, '%Y-%m-%d')
|
|
</if>
|
|
<if test="keyWords != null and keyWords != ''">
|
|
and (isdo.billNo like concat('%', #{keyWords}, '%')
|
|
or isdo.workPlaceCode like concat('%', #{keyWords}, '%')
|
|
or isdo.busType like concat('%', #{keyWords}, '%'))
|
|
</if>
|
|
</where>
|
|
ORDER BY isdo.createTime DESC
|
|
</select>
|
|
</mapper>
|