update 解决查询订单列表,出现2条订单问题

This commit is contained in:
2023-08-07 10:07:22 +08:00
parent 8164dad053
commit 335006c1d7

View File

@@ -191,10 +191,10 @@
t4.total_service_amount as totalServiceAmount,
t5.payment_institutions as paymentInstitutions
from order_basic_info t1
left join member_basic_info t2 on t1.member_id = t2.member_id
join pile_station_info t3 on t1.station_id = t3.id
join order_detail t4 on t4.order_code = t1.order_code
left join member_transaction_record t5 on t5.order_code = t1.order_code and action_type = 'forward'
left join member_basic_info t2 on t1.member_id = t2.member_id
join pile_station_info t3 on t1.station_id = t3.id
join order_detail t4 on t4.order_code = t1.order_code and t4.del_flag = '0'
left join member_transaction_record t5 on t5.order_code = t1.order_code and action_type = 'forward'
where t1.del_flag = '0'
<if test="pileSn != null and pileSn != ''">
and t1.pile_sn = #{pileSn,jdbcType=VARCHAR}