Commit e453e2c3 by 赵增煜

fix

parent f348d916
......@@ -101,6 +101,9 @@ public function autoPrescriptionReview()
$pharmacist = PharmacyModel::where('id', $prescription->pharmacy_id)->first();
// $doctor = DoctorModel::where('id', $prescription->doctor_id)->first();
// if ($doctor->is_auto == 0 && $pharmacist->is_auto == 1) {
if ($pharmacist == null) {
continue;
}
if ($pharmacist->is_auto == 1) {
// 更新处方单状态
$prescriptionInfo = PrescriptionModel::find($prescription->id);
......
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