Selaa lähdekoodia

接口优化

dev
nizongfeng 3 vuotta sitten
vanhempi
commit
63c73f9793
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. +2
    -2
      application/admin/service/ReceiptOrderDao.php

+ 2
- 2
application/admin/service/ReceiptOrderDao.php Näytä tiedosto

@@ -100,14 +100,14 @@ class ReceiptOrderDao
$total = $receiptOrder
->alias("a")
->join('hbp_order_main b', 'a.id = b.receipt_order_id', 'left')
->field("a.*,count(1) cnt,sum(b.total_amount) total_amount")
->field("a.*,GROUP_CONCAT(b.id) order_ids,sum(b.total_amount) total_amount")
->group("a.id")
->where($where)->count();

$list = $receiptOrder
->alias("a")
->join('hbp_order_main b', 'a.id = b.receipt_order_id', 'left')
->field("a.*,count(1) cnt,sum(b.total_amount) total_amount")
->field("a.*,GROUP_CONCAT(b.id) order_ids,sum(b.total_amount) total_amount")
->group("a.id")
->where($where)
->limit($offset, $param['pageSize'])


Ladataan…
Peruuta
Tallenna