Bläddra i källkod

接口优化

dev
nizongfeng 3 år sedan
förälder
incheckning
63c73f9793
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. +2
    -2
      application/admin/service/ReceiptOrderDao.php

+ 2
- 2
application/admin/service/ReceiptOrderDao.php Visa fil

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


Laddar…
Avbryt
Spara