商户 各接口
This commit is contained in:
parent
7bec493ac7
commit
14505c4605
@ -140,9 +140,9 @@ class Merchant extends BaseController
|
||||
->where('B.mer_id', $merId)
|
||||
->where('B.paid', 1)->group('A.product_id')->limit(30)->order('total DESC')->fetchSql()->select();
|
||||
$totalCount = 0;
|
||||
foreach ($list as $item) {
|
||||
$totalCount += $item['total'];
|
||||
}
|
||||
// foreach ($list as $item) {
|
||||
// $totalCount += $item['total'];
|
||||
// }
|
||||
return app('json')->success(compact('list', 'totalCount'));
|
||||
}
|
||||
|
||||
@ -171,9 +171,9 @@ class Merchant extends BaseController
|
||||
->where('A.type', 'product')->where('B.mer_id', $merId)->group('A.type_id')->order('total DESC')->fetchSql()
|
||||
->limit(30)->select();
|
||||
$totalCount = 0;
|
||||
foreach ($list as $item) {
|
||||
$totalCount += $item['total'];
|
||||
}
|
||||
// foreach ($list as $item) {
|
||||
// $totalCount += $item['total'];
|
||||
// }
|
||||
return app('json')->success(compact('list', 'totalCount'));
|
||||
}
|
||||
|
||||
@ -202,9 +202,9 @@ class Merchant extends BaseController
|
||||
->where('B.product_type', 0)->where('B.is_pay', 0)->where('B.is_del', 0)
|
||||
->where('B.is_new', 0)->where('B.is_fail', 0)->group('A.product_id')->limit(30)->order('total DESC')->fetchSql()->select();
|
||||
$totalCount = 0;
|
||||
foreach ($list as $item) {
|
||||
$totalCount += $item['total'];
|
||||
}
|
||||
// foreach ($list as $item) {
|
||||
// $totalCount += $item['total'];
|
||||
// }
|
||||
return app('json')->success(compact('list', 'totalCount'));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user