单据详情接口修改
parent
6b60cc0244
commit
3ee4e9caf9
@ -1,4 +1,34 @@
|
||||
<?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.IoCollectOrderBizMapper">
|
||||
<select id="filterList" parameterType="com.glxp.api.req.collect.CollectOrderBizRequest"
|
||||
resultType="com.glxp.api.res.collect.CollectOrderBizResponse">
|
||||
SELECT icob.*, bp.nameCode diCode, bp.zczbhhzbapzbh, bp.manufactory
|
||||
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
|
||||
<where>
|
||||
<if test="thrCode != '' and thrCode != null">
|
||||
AND icob.thrCode LIKE concat('%', #{thrCode}, '%')
|
||||
</if>
|
||||
<if test="orderIdFk != null and orderIdFk != ''">
|
||||
AND icob.orderIdFk = #{orderIdFk}
|
||||
</if>
|
||||
<if test="relId != null">
|
||||
AND icob.relId = #{relId}
|
||||
</if>
|
||||
<if test="cpmctymc != null and cpmctymc != ''">
|
||||
AND icob.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 ggxh LIKE concat('%', #{ggxh}, '%')
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
</mapper>
|
||||
|
Loading…
Reference in New Issue