Commit 7d2b67d3 by 赵增煜

Merge branch 'hotfix-1201' into develop

parents 1ce170d0 d9687f0f
...@@ -115,12 +115,13 @@ public function drugLimit(Request $request) ...@@ -115,12 +115,13 @@ public function drugLimit(Request $request)
$patient_id = $request->input('patient_id'); $patient_id = $request->input('patient_id');
$pharmacy_id = $request->input('pharmacy_id'); $pharmacy_id = $request->input('pharmacy_id');
$sevenDaysAgo = Carbon::now()->subDays(7); # $sevenDaysAgo = Carbon::now()->subDays(7);
$oneDayAgo = Carbon::now()->subDay();
$prescriptions = PrescriptionModel::where('patient_id', $patient_id) $prescriptions = PrescriptionModel::where('patient_id', $patient_id)
->where('is_voided', PrescriptionModel::IS_VOIDED_FALSE) // 未作废的处方 ->where('is_voided', PrescriptionModel::IS_VOIDED_FALSE) // 未作废的处方
->where('status', PrescriptionModel::PRESCRIPTION_STATUS_SUCCESS) ->where('status', PrescriptionModel::PRESCRIPTION_STATUS_SUCCESS)
->where('pharmacy_id', $pharmacy_id) # ->where('pharmacy_id', $pharmacy_id)
->where('created_at', '>=', $sevenDaysAgo) ->where('created_at', '>=', $oneDayAgo)
->get(); ->get();
$drugCounts = []; $drugCounts = [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment