This commit is contained in:
sxu 2023-12-06 14:09:48 +08:00
parent fb86c830c0
commit 468956451c
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectOrderInfoList" parameterType="com.bonus.zlpt.common.core.domain.order.vo.OrderInfoVo" resultType="com.bonus.zlpt.common.core.domain.order.vo.OrderInfoVo"> <select id="selectOrderInfoList" parameterType="com.bonus.zlpt.common.core.domain.order.vo.OrderInfoVo" resultType="com.bonus.zlpt.common.core.domain.order.vo.OrderInfoVo">
select o.*,d.phone as order_phone,d.ma_id,co.company_name as supplier_company select o.*,d.phone as order_phone,d.ma_id,co.company_name as supplier_company
from ma_order_info o from ma_order_info o
left join ma_order_details d on o.order_id=d.order_id left join ma_order_details d on o.order_id=d.id
left join bm_company_info co on o.supplier=co.company_id left join bm_company_info co on o.supplier=co.company_id
<where> <where>
<if test="orderId != null "> and o.order_id = #{orderId}</if> <if test="orderId != null "> and o.order_id = #{orderId}</if>