|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
<mapper namespace="au.com.royalpay.payment.manage.mappers.bill.BillMapper">
|
|
|
|
|
|
|
|
|
|
<select id="listWithOrderAnalysis" resultType="com.alibaba.fastjson.JSONObject" >
|
|
|
|
|
select b.bill_id,b.status,b.currency,DATE_FORMAT(b.create_time,'%Y-%c-%e') create_date, DATE_FORMAT(b.create_time,'%H:%m:%s') create_time,b.remark,b.price,count(o.bill_order_id) order_counts,sum(o.order_total_amount) order_total_amount
|
|
|
|
|
select b.bill_id,b.status,b.currency,DATE_FORMAT(b.create_time, '%Y-%m-%d') create_date,DATE_FORMAT(b.create_time, '%k:%i:%s') create_time,b.remark,b.price,count(o.bill_order_id) order_counts,sum(o.order_total_amount) order_total_amount
|
|
|
|
|
from pmt_bill b left join pmt_bill_order o
|
|
|
|
|
on b.bill_id = o.bill_id and o.order_status = 1
|
|
|
|
|
<where>
|
|
|
|
|