mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
bugfix 计算站点日报
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user