商户 各接口

This commit is contained in:
chenbo 2023-12-19 15:44:55 +08:00
parent 14505c4605
commit 8343f42049

View File

@ -136,7 +136,7 @@ class Merchant extends BaseController
// }, 2000 + random_int(600, 1200));
$list = StoreOrderProduct::getDB()->alias('A')->leftJoin('StoreOrder B', 'A.order_id = B.order_id')
->field(\think\facade\Db::raw('sum(A.product_num) as total,A.product_id,cart_info'))
->whereBetweenTime('B.pay_time', $startDate, $endDate)
->whereBetweenTime('B.pay_time', $startDate, date("Y-m-d H:i:s", $endDate))
->where('B.mer_id', $merId)
->where('B.paid', 1)->group('A.product_id')->limit(30)->order('total DESC')->fetchSql()->select();
$totalCount = 0;