123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213 |
- <?php
- namespace app\api\dao\remote;
- use app\api\dao\ZskkDefaultDao;
- use app\api\model\remote\RemoteModel;
- /**
- * 后台控制器基类
- * 接口方法权限 必传参数 接口返回 错误抛出 通用参数处理
- */
- class RemoteDao extends ZskkDefaultDao {
- protected $flag = true;
- protected $logName = "RemoteDao";
- protected $remote = null;
- public function __construct(RemoteModel $remoteModel)
- {
- parent::__construct();
- $this->remote = $remoteModel;
- }
- public function getUser($token)
- {
- $user = $this->getCache($token);
- if(!$user){
- $this->throwError('登陆信息失效,请重新进行登陆','0099');
- }
- return $user;
- }
- public function getReportNum($id,$time)
- {
- $info = $this->remote->getReportNum($id,$time);
- return $info;
- }
- public function getAllNum($id)
- {
- $info = $this->remote->getAllNum($id);
- return $info;
- }
- public function getCountNum($id,$field)
- {
- $info = $this->remote->getCountNum($id,$field);
- return $info;
- }
- public function getRemoteInfo($ids,$field)
- {
- $info = $this->remote->getRemoteInfo($ids,$field);
- return $info;
- }
- public function getRemoteByIns($institution,$field)
- {
- $info = $this->remote->getRemoteByIns($institution,$field);
- return $info;
- }
- public function getInstitutionInfo($ids)
- {
- $info = $this->remote->getInstitutionInfo($ids);
- return $info;
- }
- public function getPatient($ids)
- {
- $info = $this->remote->getPatient($ids);
- return $info;
- }
- public function getExamInfo($ids,$field)
- {
- $info = $this->remote->getExamInfo($ids,$field);
- return $info;
- }
- public function querySql($sql)
- {
- $info = $this->remote->querySql($sql);
- return $info;
- }
- public function getTodayInfo($doctor,$where,$where_status,$report_where,$review_where,$class_where,$fuzzyWhere,$params)
- {
- $info = $this->remote->getTodayTnfo($doctor,$where,$where_status,$report_where,$review_where,$class_where,$fuzzyWhere,$params);
- return $info;
- }
- public function getIncomplete($params,$doctor,$where,$where_status,$report_where,$review_where,$class_where,$search)
- {
- $info = $this->remote->getIncomplete($params,$doctor,$where,$where_status,$report_where,$review_where,$class_where,$search);
- return $info;
- }
- public function getConfirm($params,$doctor,$report_where,$review_where,$review_status,$report_status,$report_review_where,$class_where,$where)
- {
- $info = $this->remote->getConfirm($params,$doctor,$report_where,$review_where,$review_status,$report_status,$report_review_where,$class_where,$where);
- return $info;
- }
- public function getDoctorName($id)
- {
- $info = $this->remote->getDoctorName($id);
- return $info;
- }
- public function getInstitutionName($id)
- {
- $info = $this->remote->getInstitutionName($id);
- return $info;
- }
- public function getInstitutionApplyTime($id)
- {
- $info = $this->remote->getInstitutionApplyTime($id);
- return $info;
- }
- public function getDoctorAdmin($id)
- {
- $info = $this->remote->getDoctorAdmin($id);
- return $info;
- }
- public function getDoctorClass($id)
- {
- $info = $this->remote->getDoctorClass($id);
- return $info;
- }
- public function getAllInfo($params,$doctor,$where,$where_status,$report_where,$report_status,$remote_where,$search,$class_where)
- {
- $info = $this->remote->getAllInfo($params,$doctor,$where,$where_status,$report_where,$report_status,$remote_where,$search,$class_where);
- return $info;
- }
- public function getRejectList($params,$doctor,$class_where,$where)
- {
- $info = $this->remote->getRejectList($params,$doctor,$class_where,$where);
- return $info;
- }
- public function getOne($params)
- {
- $info = $this->remote->getOne($params);
- return $info;
- }
- public function getReportId($id)
- {
- $info = $this->remote->getReportId($id);
- return $info;
- }
- public function getRemote($id)
- {
- $info = $this->remote->getRemote($id);
- return $info;
- }
- public function getDcmPath($where,$study)
- {
- $info = $this->remote->getDcmPath($where,$study);
- return $info;
- }
- public function getTtace($id)
- {
- $info = $this->remote->getTtace($id);
- return $info;
- }
- public function getApplicationById($id,$field)
- {
- $info = $this->remote->getApplicationById($id,$field);
- return $info;
- }
- public function distribute($params)
- {
- $info = $this->remote->distribute($params);
- return $info;
- }
- public function getDoctorList($id)
- {
- $info = $this->remote->getDoctorList($id);
- return $info;
- }
- public function getVideoList($doctor)
- {
- $info = $this->remote->getVideoList($doctor);
- return $info;
- }
- public function getExamList($where_status,$class_where,$page,$doctor)
- {
- $info = $this->remote->getExamList($where_status,$class_where,$page,$doctor);
- return $info;
- }
- public function rejectStatus($id)
- {
- $info = $this->remote->rejectStatus($id);
- return $info;
- }
- }
|