This commit is contained in:
sxu 2023-12-10 02:14:09 +08:00
parent c52de7958f
commit bc1debe0a3
1 changed files with 2 additions and 1 deletions

View File

@ -44,9 +44,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select id="selectOrderInfoByOrderId" parameterType="Long" resultType="com.bonus.zlpt.common.core.domain.order.vo.OrderInfoVo">
select d.*,o.code,o.time,o.order_status,o.reject_reason
select d.*,o.code,o.time,o.order_status,o.reject_reason, o.order_company, co.company_name
from ma_order_info o
left join ma_order_details d on d.order_id = o.order_id
left join bm_company_info co on o.order_company = co.company_id
where o.order_id = #{orderId}
</select>