支付修复Bug

This commit is contained in:
2025-03-30 23:29:09 +08:00
parent 956915cbe1
commit 80dc9e67d5
2 changed files with 6 additions and 3 deletions

View File

@@ -39,7 +39,8 @@ class DataController extends BaseAdminController
// 总成交
$totalPrice = Reconciliation::find()->where(['status' => 1]);
// 处方订单
$prescriptionCount = Prescription::find()->where(['status' => 1]);
// $prescriptionCount = Prescription::find()->where(['status' => 1]);
$prescriptionCount = Prescription::find()->where(['in', 'status', [0,1,3,4]]);
// 接诊人数
$registerCount = Register::find()->where(['in', 'status', [2, 3]]);
$totalPriceArr = 0;
@@ -54,8 +55,10 @@ class DataController extends BaseAdminController
'total_price' => round($totalPriceArr, 2),
'prescription' => intval($prescriptionCount->count()),
'register' => intval($registerCount->count()),
'prescription_china' => intval($prescriptionCount->andWhere(['prescription_type' => 1])->count()),
'prescription_west' => intval($prescriptionCount->andWhere(['prescription_type' => 2])->count())
'prescription_china' => intval(Prescription::find()->where(['in', 'status', [0,1,3,4]])->andWhere(['prescription_type' => 1])->count()),
// 'prescription_west' => intval(Prescription::find()->where(['in', 'status', [0,1,3,4]])->andWhere(['prescription_type' => 2])->count()),
'prescription_west' => intval(Prescription::find()->where(['in', 'status', [0,1,3,4]])->andWhere(['in', 'prescription_type', [2,4]])->count()),
'prescription_package_server' => intval(Prescription::find()->where(['in', 'status', [0,1,3,4]])->andWhere(['prescription_type' => 5])->count())
];
}