加密数据

This commit is contained in:
2024-11-19 11:11:02 +08:00
parent cbc630fb64
commit 11e1a72273
3 changed files with 60 additions and 4 deletions

View File

@@ -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()),