This commit is contained in:
sxu 2023-12-08 13:18:51 +08:00
parent 8b3b5ce059
commit d0cf721763
1 changed files with 8 additions and 8 deletions

View File

@ -44,16 +44,16 @@ 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 as order_time,o.order_status
-- from ma_order_info o
-- left join ma_order_details d on d.order_id = o.order_id
-- where o.order_id = #{orderId}
select d.*,o.code,o.time as order_time,o.order_status,s.file_url as contract_url
select d.*,o.code,o.time as order_time,o.order_status
from ma_order_info o
left join ma_order_details d on d.order_id = o.order_id
left join sys_file_info s on s.model_id = o.order_id
where o.order_id = #{orderId} and s.dic_id = 21
left join ma_order_details d on d.order_id = o.order_id
where o.order_id = #{orderId}
</select>
<!-- select d.*,o.code,o.time as order_time,o.order_status,s.file_url as contract_url-->
<!-- from ma_order_info o-->
<!-- left join ma_order_details d on d.order_id = o.order_id-->
<!-- left join sys_file_info s on s.model_id = o.order_id-->
<!-- where o.order_id = #{orderId} and s.dic_id = 21-->
<insert id="insertOrderInfo" parameterType="com.bonus.zlpt.common.core.domain.order.vo.OrderInfoVo">
insert into ma_order_info