Merge branch 'dev' of https://gitea.lihaink.cn/mkm/multi-store into dev
This commit is contained in:
commit
d2d82f31ee
@ -904,7 +904,9 @@ class WorkbenchLogic extends BaseLogic
|
|||||||
'SUM(collect_num) as collect',
|
'SUM(collect_num) as collect',
|
||||||
'ROUND((COUNT(distinct(pay_uid))-1)/COUNT(distinct(uid)),2) as changes',
|
'ROUND((COUNT(distinct(pay_uid))-1)/COUNT(distinct(uid)),2) as changes',
|
||||||
'COUNT(distinct(pay_uid))-1 as repeats'
|
'COUNT(distinct(pay_uid))-1 as repeats'
|
||||||
])->group('product_id')->order('pay', ' desc')->limit(20)->select()->toArray();
|
])->group('product_id')->order('pay', 'desc')
|
||||||
|
->limit(20)
|
||||||
|
->select()->toArray();
|
||||||
foreach ($list as $key => &$item) {
|
foreach ($list as $key => &$item) {
|
||||||
$find = StoreProduct::where('id', $item['product_id'])->field('store_name,image')->find();
|
$find = StoreProduct::where('id', $item['product_id'])->field('store_name,image')->find();
|
||||||
$item['store_name'] = $find['store_name'];
|
$item['store_name'] = $find['store_name'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user