|
|
|
@ -58,6 +58,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
bp.product_id itemId
|
|
|
|
|
from base_product bp
|
|
|
|
|
where bp.active_flag = '1' and bp.del_flag = '0'
|
|
|
|
|
and bp.product_code not in (
|
|
|
|
|
select pp.item_code
|
|
|
|
|
from pro_route_product pp
|
|
|
|
|
where pp.route_id = #{routeId}
|
|
|
|
|
)
|
|
|
|
|
<if test="itemName != null and itemName != ''"> and bp.product_desc_zh like concat('%', #{itemName}, '%')</if>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<!-- <select id="getRouteProdProductListDo" resultType="com.op.technology.domain.ProRouteProduct">-->
|
|
|
|
@ -74,6 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
from pro_route_product pp
|
|
|
|
|
left join base_product bp on pp.item_code = bp.product_code
|
|
|
|
|
where pp.route_id = #{routeId}
|
|
|
|
|
<if test="itemName != null and itemName != ''"> and bp.product_desc_zh like concat('%', #{itemName}, '%')</if>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<insert id="insertProRouteProduct" parameterType="ProRouteProduct">
|
|
|
|
|