|
|
@@ -132,8 +132,8 @@ class PaymentOrderDao |
|
|
|
$list = $receiptOrder |
|
|
|
->alias("a") |
|
|
|
->field("a.*, |
|
|
|
(SELECT concat('订单:',ifnull( GROUP_CONCAT( id ORDER BY id DESC ), '-' ), '</br>金额:',ifnull( sum( total_price ), '-' )) from hbp_order_item where payment_order_id = a.id) 'item', |
|
|
|
(SELECT concat('订单:',ifnull( GROUP_CONCAT( id ORDER BY id DESC ), '-' ), '</br>金额:',ifnull( sum( total_price ), '-' )) from hbp_order_hotel where payment_order_id = a.id) 'hotel' |
|
|
|
(SELECT concat('订单:',ifnull( GROUP_CONCAT( id ORDER BY id DESC ), '-' ), '</br>金额:',ifnull( sum( total_cost ), '-' )) from hbp_order_item where payment_order_id = a.id) 'item', |
|
|
|
(SELECT concat('订单:',ifnull( GROUP_CONCAT( id ORDER BY id DESC ), '-' ), '</br>金额:',ifnull( sum( total_cost ), '-' )) from hbp_order_hotel where payment_order_id = a.id) 'hotel' |
|
|
|
") |
|
|
|
->group("a.id") |
|
|
|
->where($where) |
|
|
|