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.
|
|
|
<?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.inv.InvPreinDetailDao">
|
|
|
|
<select id="filterList" parameterType="com.glxp.api.req.inv.FilterInvPreinDetailRequest"
|
|
|
|
resultType="com.glxp.api.res.inv.InvPreinDetailResponse">
|
|
|
|
select ic.*,
|
|
|
|
bp.cpmctymc productName
|
|
|
|
from inv_prein_detail ic
|
|
|
|
left join basic_udirel bu on bu.id = ic.relId
|
|
|
|
left join basic_products bp on bu.uuid = bp.uuid
|
|
|
|
<where>
|
|
|
|
<if test="orderId != null and orderId != ''">
|
|
|
|
AND ic.orderId = #{orderId}
|
|
|
|
</if>
|
|
|
|
<if test="code != null and code != ''">
|
|
|
|
and ic.code like concat('%',#{code},'%')
|
|
|
|
</if>
|
|
|
|
</where>
|
|
|
|
group by ic.id
|
|
|
|
</select>
|
|
|
|
</mapper>
|