加密数据
This commit is contained in:
@@ -73,7 +73,7 @@ class HomeController extends BaseAdminController
|
||||
$admin = \Yii::$app->user->identity;
|
||||
$orderCount = ProductOrder::find()->where(['is_pay' => 1]);
|
||||
$totalPrice = Reconciliation::find()->where(['status' => 1]);
|
||||
$inventoryWarning = DrugStoreRelations::find()->where(['<', 'stock', 100]);
|
||||
// $inventoryWarning = DrugStoreRelations::find()->where(['<', 'stock', 100]);
|
||||
$drug = DrugStoreRelations::find();
|
||||
// 处方订单
|
||||
$prescriptionCount = Prescription::find()->where(['status' => 1]);
|
||||
@@ -111,7 +111,7 @@ class HomeController extends BaseAdminController
|
||||
if (!empty($where)) {
|
||||
$orderCount->andWhere($where)->andWhere($whereTime);
|
||||
$totalPrice->andWhere($where)->andWhere($whereTime);
|
||||
$inventoryWarning->andWhere($where)->andWhere($whereTime);
|
||||
// $inventoryWarning->andWhere($where)->andWhere($whereTime);
|
||||
$drug->where($where)->andWhere($whereTime);
|
||||
$registerCount->andWhere($where)->andWhere($whereTime);
|
||||
$prescriptionCount->andWhere($where)->andWhere($whereTime);
|
||||
@@ -124,7 +124,7 @@ class HomeController extends BaseAdminController
|
||||
return [
|
||||
'order' => intval($orderCount->count()),
|
||||
'total_price' => round($totalPriceArr, 2),
|
||||
'inventory_warning' => intval($inventoryWarning->count()),
|
||||
// 'inventory_warning' => intval($inventoryWarning->count()),
|
||||
'drug' => intval($drug->count()),
|
||||
'register' => intval($registerCount->count()),
|
||||
'prescription' => intval($prescriptionCount->count()),
|
||||
|
||||
Reference in New Issue
Block a user