|
|
|
@ -184,40 +184,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="orderOutRecordPage" resultType="com.glxp.api.res.inout.IoOrderDetailBizResponse">
|
|
|
|
|
select io_order_detail_biz.*,
|
|
|
|
|
io.action,
|
|
|
|
|
io.updateTime
|
|
|
|
|
from io_order_detail_biz
|
|
|
|
|
left join io_order io on io.billNo = io_order_detail_biz.orderIdFk
|
|
|
|
|
<where>
|
|
|
|
|
AND ( io.action = 'SC72197936495755' OR io.action = 'SC72249388338364' )
|
|
|
|
|
<if test="batchNo != null and batchNo != ''">
|
|
|
|
|
AND batchNo = #{batchNo}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="action != null and action != ''">
|
|
|
|
|
AND io.action = #{action}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="productName != null and productName != ''">
|
|
|
|
|
AND io_order_detail_biz.coName like concat('%', #{productName}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cpmctymc != null and cpmctymc != ''">
|
|
|
|
|
AND io_order_detail_biz.coName like concat('%', #{cpmctymc}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="nameCode != null and nameCode != ''">
|
|
|
|
|
AND io_order_detail_biz.nameCode like concat('%', #{nameCode}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ggxh != null and ggxh != ''">
|
|
|
|
|
AND io_order_detail_biz.spec like concat('%', #{ggxh}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="keyWords != null and keyWords != ''">
|
|
|
|
|
AND (
|
|
|
|
|
io_order_detail_biz.coName like concat('%', #{keyWords}, '%')
|
|
|
|
|
OR io_order_detail_biz.spec like concat('%', #{keyWords}, '%')
|
|
|
|
|
OR io_order_detail_biz.batchNo like concat('%', #{keyWords}, '%')
|
|
|
|
|
)
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
order by updateTime desc
|
|
|
|
|
</select>
|
|
|
|
|
select io_order_detail_biz.*,
|
|
|
|
|
io.action,
|
|
|
|
|
io.updateTime,
|
|
|
|
|
bp.prepnSpec
|
|
|
|
|
from io_order_detail_biz
|
|
|
|
|
left join basic_udirel bu on bu.id = io_order_detail_biz.bindRlFk
|
|
|
|
|
left join basic_products bp on bu.uuid = bp.uuid
|
|
|
|
|
left join io_order io on io.billNo = io_order_detail_biz.orderIdFk
|
|
|
|
|
<where>
|
|
|
|
|
AND (io.action = 'SC72197936495755' OR io.action = 'SC72249388338364')
|
|
|
|
|
<if test="batchNo != null and batchNo != ''">
|
|
|
|
|
AND batchNo = #{batchNo}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="action != null and action != ''">
|
|
|
|
|
AND io.action = #{action}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="productName != null and productName != ''">
|
|
|
|
|
AND io_order_detail_biz.coName like concat('%', #{productName}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cpmctymc != null and cpmctymc != ''">
|
|
|
|
|
AND io_order_detail_biz.coName like concat('%', #{cpmctymc}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="nameCode != null and nameCode != ''">
|
|
|
|
|
AND io_order_detail_biz.nameCode like concat('%', #{nameCode}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ggxh != null and ggxh != ''">
|
|
|
|
|
AND io_order_detail_biz.spec like concat('%', #{ggxh}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="keyWords != null and keyWords != ''">
|
|
|
|
|
AND (
|
|
|
|
|
io_order_detail_biz.coName like concat('%', #{keyWords}, '%')
|
|
|
|
|
OR io_order_detail_biz.spec like concat('%', #{keyWords}, '%')
|
|
|
|
|
OR io_order_detail_biz.batchNo like concat('%', #{keyWords}, '%')
|
|
|
|
|
)
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
GROUP BY io_order_detail_biz.id
|
|
|
|
|
order by updateTime desc
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|