|
|
|
@ -4,7 +4,39 @@
|
|
|
|
|
|
|
|
|
|
<select id="selectIoCodeRelList" parameterType="com.glxp.api.req.inout.IoOrderRelRequest"
|
|
|
|
|
resultType="com.glxp.api.res.inout.IoCodeRelResponse">
|
|
|
|
|
select io_code_rel.*, basic_products.cpmctymc, basic_products.ggxh
|
|
|
|
|
select io_code_rel.*, basic_products.cpmctymc, basic_products.ggxh,basic_products.manufactory,basic_products.measname
|
|
|
|
|
from io_code_rel
|
|
|
|
|
LEFT JOIN basic_products on io_code_rel.nameCode = basic_products.nameCode
|
|
|
|
|
<where>
|
|
|
|
|
<if test="code != '' and code != null">
|
|
|
|
|
and io_code_rel.code like concat('%', #{code}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="parentCode != '' and parentCode != null">
|
|
|
|
|
and io_code_rel.parentCode =#{parentCode}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="nameCode != '' and nameCode != null">
|
|
|
|
|
and io_code_rel.nameCode=#{nameCode}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cpmctymc != '' and cpmctymc != null">
|
|
|
|
|
and basic_products.cpmctymc like concat('%', #{cpmctymc}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="ggxh != '' and ggxh != null">
|
|
|
|
|
and basic_products.ggxh like concat('%', #{ggxh}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
<if test="serialNo != '' and serialNo != null">
|
|
|
|
|
and io_code_rel.serialNo like concat('%', #{serialNo}, '%')
|
|
|
|
|
</if>
|
|
|
|
|
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
|
|
|
|
|
AND date_format(io_code_rel.createTime, '%Y-%m-%d') between date_format(#{startTime}, '%Y-%m-%d') and date_format(#{endTime}, '%Y-%m-%d')
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
GROUP BY io_code_rel.parentCode
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectIoCodeRelDetailList" parameterType="com.glxp.api.req.inout.IoOrderRelRequest"
|
|
|
|
|
resultType="com.glxp.api.res.inout.IoCodeRelResponse">
|
|
|
|
|
select io_code_rel.*, basic_products.cpmctymc, basic_products.ggxh,basic_products.manufactory,basic_products.measname
|
|
|
|
|
from io_code_rel
|
|
|
|
|
LEFT JOIN basic_products on io_code_rel.nameCode = basic_products.nameCode
|
|
|
|
|
<where>
|
|
|
|
|