Browse Source

成本

dev
nizongfeng 3 years ago
parent
commit
733017be63
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      application/admin/dao/PaymentOrderDao.php

+ 2
- 2
application/admin/dao/PaymentOrderDao.php View File

@@ -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_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'
(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)


Loading…
Cancel
Save