Kaynağa Gözat

付款单为成本金额

dev
nizongfeng 3 yıl önce
ebeveyn
işleme
8e54684ff9
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. +2
    -2
      application/admin/dao/PaymentOrderDao.php

+ 2
- 2
application/admin/dao/PaymentOrderDao.php Dosyayı Görüntüle

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


Yükleniyor…
İptal
Kaydet