bugfix 计算站点日报

This commit is contained in:
2023-08-19 13:21:02 +08:00
parent 150d117493
commit c2dddd65a7

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 and t4.del_flag = '0'
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 and t2.del_flag = '0'
join pile_station_info t3 on t1.station_id = t3.id and t3.del_flag = '0'
join order_detail t4 on t4.order_code = t1.order_code and t4.del_flag = '0' and t4.del_flag = '0'
left join member_transaction_record t5 on t5.order_code = t1.order_code and action_type = 'forward' and t5.del_flag = '0'
where t1.del_flag = '0'
<if test="pileSn != null and pileSn != ''">
and t1.pile_sn = #{pileSn,jdbcType=VARCHAR}