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.
34 lines
1.3 KiB
XML
34 lines
1.3 KiB
XML
<?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.IoCollectOrderCodeAutoMapper">
|
|
<select id="filterList" parameterType="com.glxp.api.req.collect.CollectOrderCodeAutoRequest"
|
|
resultType="com.glxp.api.res.collect.CollectOrderCodeAutoResponse">
|
|
SELECT icoca.*,
|
|
bp.nameCode,
|
|
bp.cpmctymc,
|
|
COALESCE(bp.ggxh, bp.bzgg) AS ggxh,
|
|
bp.bzgg,
|
|
bp.zczbhhzbapzbh,
|
|
bp.manufactory
|
|
FROM io_collect_order_code_auto icoca
|
|
left join io_split_code isc
|
|
on icoca.codeIdFk = isc.id
|
|
left join basic_udirel bu on icoca.relId = bu.id
|
|
left join basic_products bp on bu.uuid = bp.uuid
|
|
<where>
|
|
<if test="codeIdFk != '' and codeIdFk != null">
|
|
AND icoca.codeIdFk = #{codeIdFk}
|
|
</if>
|
|
<if test="udiCode != '' and udiCode != null">
|
|
AND icoca.udiCode = #{udiCode}
|
|
</if>
|
|
<if test="codeIdFk != null">
|
|
AND icoca.codeIdFk = #{codeIdFk}
|
|
</if>
|
|
<if test="fifoSplit != null">
|
|
AND icoca.fifoSplit = #{fifoSplit}
|
|
</if>
|
|
</where>
|
|
</select>
|
|
</mapper>
|