扫码作业问题

workplace
yewj 11 months ago
parent b1eca2aab3
commit 67123a1011

@ -5,8 +5,8 @@
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
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>

@ -4,14 +4,14 @@
<select id="filterList" parameterType="com.glxp.api.req.collect.CollectOrderCodeManRequest"
resultType="com.glxp.api.res.collect.CollectOrderCodeManResponse">
SELECT icocm.*,
bp.cpmctymc,
COALESCE(bp.ggxh, bp.bzgg) AS ggxh,
bp.bzgg,
bp.zczbhhzbapzbh,
bp.manufactory
bp.cpmctymc,
COALESCE(bp.ggxh, bp.bzgg) AS ggxh,
bp.bzgg,
bp.zczbhhzbapzbh,
bp.manufactory
FROM io_collect_order_code_man icocm
left join basic_udirel bu on icocm.relId = bu.id
left join basic_products bp on bu.uuid = bp.uuid
left join basic_udirel bu on icocm.relId = bu.id
left join basic_products bp on bu.uuid = bp.uuid
<where>
<if test="orderIdFk != '' and orderIdFk != null">
AND icocm.orderIdFk = #{orderIdFk}
@ -26,5 +26,6 @@
AND icocm.bizIdFk = #{bizIdFk}
</if>
</where>
group by icocm.id
</select>
</mapper>

Loading…
Cancel
Save