首页统计
This commit is contained in:
@@ -184,7 +184,8 @@ class HomeController extends BaseAdminController
|
||||
}])
|
||||
->where(['<', 'stock', 100])
|
||||
->orderBy(['stock' => SORT_ASC])
|
||||
->asArray();
|
||||
->asArray()
|
||||
->all();
|
||||
if (empty($list)) {
|
||||
$list = DrugStoreDrug::find()
|
||||
->with(['drug' => function ($query) {
|
||||
@@ -192,9 +193,10 @@ class HomeController extends BaseAdminController
|
||||
}])
|
||||
->orderBy(['stock' => SORT_ASC])
|
||||
->limit(10)
|
||||
->asArray();
|
||||
->asArray()
|
||||
->all();
|
||||
}
|
||||
return $list->all();
|
||||
return $list;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user