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.
32 lines
1.5 KiB
XML
32 lines
1.5 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.IoSplitDesOrderDetailMapper">
|
||
|
<select id="filterList" parameterType="com.glxp.api.req.collect.IoSplitDesOrderDetailRequest"
|
||
|
resultType="com.glxp.api.res.collect.IoSplitDesOrderDetailResponse">
|
||
|
SELECT isdod.*, bp.nameCode diCode, bp.zczbhhzbapzbh, bp.manufactory, bp.bzgg
|
||
|
FROM io_split_des_order_detail isdod
|
||
|
left join basic_udirel bu on isdod.relId = bu.id
|
||
|
left join basic_products bp on bu.uuid = bp.uuid
|
||
|
<where>
|
||
|
<if test="orderIdFk != null and orderIdFk != ''">
|
||
|
AND isdod.orderIdFk = #{orderIdFk}
|
||
|
</if>
|
||
|
<if test="relId != null">
|
||
|
AND isdod.relId = #{relId}
|
||
|
</if>
|
||
|
<if test="cpmctymc != null and cpmctymc != ''">
|
||
|
AND bp.cpmctymc LIKE concat('%', #{cpmctymc}, '%')
|
||
|
</if>
|
||
|
<if test="unionCode != '' and unionCode != null">
|
||
|
and (
|
||
|
bp.nameCode LIKE concat('%', #{unionCode}, '%')
|
||
|
or bp.ybbm LIKE concat('%', #{unionCode}, '%')
|
||
|
or bp.sptm LIKE concat('%', #{unionCode}, '%'))
|
||
|
</if>
|
||
|
<if test="ggxh != '' and ggxh != null">
|
||
|
AND bp.ggxh LIKE concat('%', #{ggxh}, '%')
|
||
|
</if>
|
||
|
</where>
|
||
|
group by isdod.id
|
||
|
</select>
|
||
|
</mapper>
|