工艺穿梭框bug修复

highway
zhaoxiaolin 1 year ago
parent 73a3d5ce6d
commit 566bff9566

@ -126,6 +126,7 @@ public class ProRouteProductServiceImpl implements IProRouteProductService {
List<ProRouteProduct> dto = proRouteProductMapper.getRouteProdProductListUndo(proRouteProduct);
List<ProRouteProduct> selected= proRouteProductMapper.getRouteProdProductListDo(proRouteProduct);
dto.addAll(selected);
dto.forEach(item -> {
item.setKey(item.getItemCode());
});

@ -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">

Loading…
Cancel
Save