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