|
|
|
@ -5,8 +5,8 @@
|
|
|
|
|
resultType="com.glxp.api.res.collect.CollectOrderBizResponse">
|
|
|
|
|
SELECT icob.*, bp.nameCode diCode, bp.zczbhhzbapzbh, bp.manufactory,bp.bzgg
|
|
|
|
|
FROM io_collect_order_biz icob
|
|
|
|
|
left join basic_udirel bu on icob.relId = bu.id
|
|
|
|
|
left join basic_products bp on bu.uuid = bp.uuid
|
|
|
|
|
left join basic_udirel bu on icob.relId = bu.id
|
|
|
|
|
left join basic_products bp on bu.uuid = bp.uuid
|
|
|
|
|
<where>
|
|
|
|
|
<if test="thrCode != '' and thrCode != null">
|
|
|
|
|
AND icob.thrCode LIKE concat('%', #{thrCode}, '%')
|
|
|
|
@ -23,12 +23,13 @@
|
|
|
|
|
<if test="unionCode != '' and unionCode != null">
|
|
|
|
|
and (
|
|
|
|
|
bp.nameCode LIKE concat('%', #{unionCode}, '%')
|
|
|
|
|
or bp.ybbm LIKE concat('%', #{unionCode}, '%')
|
|
|
|
|
or bp.sptm LIKE concat('%', #{unionCode}, '%'))
|
|
|
|
|
or bp.ybbm LIKE concat('%', #{unionCode}, '%')
|
|
|
|
|
or bp.sptm LIKE concat('%', #{unionCode}, '%'))
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ggxh != '' and ggxh != null">
|
|
|
|
|
AND ggxh LIKE concat('%', #{ggxh}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
group by icob.id
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|
|
|
|
|