ソースを参照

付款单为成本金额

dev
nizongfeng 3年前
コミット
8e54684ff9
1個のファイルの変更2行の追加2行の削除
  1. +2
    -2
      application/admin/dao/PaymentOrderDao.php

+ 2
- 2
application/admin/dao/PaymentOrderDao.php ファイルの表示

@@ -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)


読み込み中…
キャンセル
保存