This commit is contained in:
Your Name
2026-05-18 09:42:11 +08:00
parent 15b4339c90
commit d79db88349
7 changed files with 250 additions and 1 deletions
@@ -48,6 +48,26 @@ class PrescriptionController extends BaseAdminController
return $this->success('编辑成功');
}
/**
* @notes 修正处方患者姓名手机号
*/
public function patchPatient()
{
$params = (new PrescriptionValidate())->post()->goCheck('patchPatient');
$ok = PrescriptionLogic::patchPatientContact(
(int) $params['id'],
(string) $params['patient_name'],
(string) $params['phone'],
(int) $this->adminId,
$this->adminInfo
);
if (!$ok) {
return $this->fail(PrescriptionLogic::getError());
}
return $this->success('已更新');
}
/**
* @notes 删除处方
*/