Patients.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. declare (strict_types=1);
  3. namespace app\admin\controller;
  4. use app\common\library\Gm;
  5. use app\common\library\Handle;
  6. use app\zskk\model\Mapping;
  7. use think\Config;
  8. use think\db\exception\DataNotFoundException;
  9. use think\db\exception\DbException;
  10. use think\db\exception\ModelNotFoundException;
  11. use think\facade\Db;
  12. use think\Exception;
  13. use Throwable;
  14. use app\common\controller\ZskkApi;
  15. use app\zskk\servies\PatientServies;
  16. class Patients extends ZskkApi
  17. {
  18. protected array $noNeedDecrypt = ['addPatient','getPatientInfo'];
  19. protected array $noNeedDecode = ['addPatient','getPatientInfo'];
  20. protected array $noNeedBlur = ['addPatient','getPatientInfo'];
  21. protected array $noNeedEncode = ['addPatient','getPatientInfo'];
  22. protected array $noNeedEncrypt = ['addPatient','getPatientInfo'];
  23. /**
  24. * @throws ModelNotFoundException
  25. * @throws DataNotFoundException
  26. * @throws DbException
  27. */
  28. public function getPatientInfo(PatientServies $servies): void
  29. {
  30. $params = $this->request->post();
  31. $patientCode = $params['PATIENT_CODE'];
  32. $data = $servies->getPatient(['PATIENT_CODE'=>$patientCode]);
  33. $this->success('',$data);
  34. }
  35. }