RemoteDao.php 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <?php
  2. namespace app\api\dao\remote;
  3. use app\api\dao\ZskkDefaultDao;
  4. use app\api\model\remote\RemoteModel;
  5. /**
  6. * 后台控制器基类
  7. * 接口方法权限 必传参数 接口返回 错误抛出 通用参数处理
  8. */
  9. class RemoteDao extends ZskkDefaultDao {
  10. protected $flag = true;
  11. protected $logName = "RemoteDao";
  12. protected $remote = null;
  13. public function __construct(RemoteModel $remoteModel)
  14. {
  15. parent::__construct();
  16. $this->remote = $remoteModel;
  17. }
  18. public function getUser($token)
  19. {
  20. $user = $this->getCache($token);
  21. if(!$user){
  22. $this->throwError('登陆信息失效,请重新进行登陆','0099');
  23. }
  24. return $user;
  25. }
  26. public function getReportNum($id,$time)
  27. {
  28. $info = $this->remote->getReportNum($id,$time);
  29. return $info;
  30. }
  31. public function getAllNum($id)
  32. {
  33. $info = $this->remote->getAllNum($id);
  34. return $info;
  35. }
  36. public function getCountNum($id,$field)
  37. {
  38. $info = $this->remote->getCountNum($id,$field);
  39. return $info;
  40. }
  41. public function getRemoteInfo($ids,$field)
  42. {
  43. $info = $this->remote->getRemoteInfo($ids,$field);
  44. return $info;
  45. }
  46. public function getRemoteByIns($institution,$field)
  47. {
  48. $info = $this->remote->getRemoteByIns($institution,$field);
  49. return $info;
  50. }
  51. public function getInstitutionInfo($ids)
  52. {
  53. $info = $this->remote->getInstitutionInfo($ids);
  54. return $info;
  55. }
  56. public function getPatient($ids)
  57. {
  58. $info = $this->remote->getPatient($ids);
  59. return $info;
  60. }
  61. public function getExamInfo($ids,$field)
  62. {
  63. $info = $this->remote->getExamInfo($ids,$field);
  64. return $info;
  65. }
  66. public function querySql($sql)
  67. {
  68. $info = $this->remote->querySql($sql);
  69. return $info;
  70. }
  71. public function getTodayInfo($doctor,$where,$where_status,$report_where,$review_where,$class_where,$fuzzyWhere,$params)
  72. {
  73. $info = $this->remote->getTodayTnfo($doctor,$where,$where_status,$report_where,$review_where,$class_where,$fuzzyWhere,$params);
  74. return $info;
  75. }
  76. public function getIncomplete($params,$doctor,$where,$where_status,$report_where,$review_where,$class_where,$search)
  77. {
  78. $info = $this->remote->getIncomplete($params,$doctor,$where,$where_status,$report_where,$review_where,$class_where,$search);
  79. return $info;
  80. }
  81. public function getConfirm($params,$doctor,$report_where,$review_where,$review_status,$report_status,$report_review_where,$class_where,$where)
  82. {
  83. $info = $this->remote->getConfirm($params,$doctor,$report_where,$review_where,$review_status,$report_status,$report_review_where,$class_where,$where);
  84. return $info;
  85. }
  86. public function getDoctorName($id)
  87. {
  88. $info = $this->remote->getDoctorName($id);
  89. return $info;
  90. }
  91. public function getInstitutionName($id)
  92. {
  93. $info = $this->remote->getInstitutionName($id);
  94. return $info;
  95. }
  96. public function getInstitutionApplyTime($id)
  97. {
  98. $info = $this->remote->getInstitutionApplyTime($id);
  99. return $info;
  100. }
  101. public function getDoctorAdmin($id)
  102. {
  103. $info = $this->remote->getDoctorAdmin($id);
  104. return $info;
  105. }
  106. public function getDoctorClass($id)
  107. {
  108. $info = $this->remote->getDoctorClass($id);
  109. return $info;
  110. }
  111. public function getAllInfo($params,$doctor,$where,$where_status,$report_where,$report_status,$remote_where,$search,$class_where)
  112. {
  113. $info = $this->remote->getAllInfo($params,$doctor,$where,$where_status,$report_where,$report_status,$remote_where,$search,$class_where);
  114. return $info;
  115. }
  116. public function getRejectList($params,$doctor,$class_where,$where)
  117. {
  118. $info = $this->remote->getRejectList($params,$doctor,$class_where,$where);
  119. return $info;
  120. }
  121. public function getOne($params)
  122. {
  123. $info = $this->remote->getOne($params);
  124. return $info;
  125. }
  126. public function getReportId($id)
  127. {
  128. $info = $this->remote->getReportId($id);
  129. return $info;
  130. }
  131. public function getRemote($id)
  132. {
  133. $info = $this->remote->getRemote($id);
  134. return $info;
  135. }
  136. public function getDcmPath($where,$study)
  137. {
  138. $info = $this->remote->getDcmPath($where,$study);
  139. return $info;
  140. }
  141. public function getTtace($id)
  142. {
  143. $info = $this->remote->getTtace($id);
  144. return $info;
  145. }
  146. public function getApplicationById($id,$field)
  147. {
  148. $info = $this->remote->getApplicationById($id,$field);
  149. return $info;
  150. }
  151. public function distribute($params)
  152. {
  153. $info = $this->remote->distribute($params);
  154. return $info;
  155. }
  156. public function getDoctorList($id)
  157. {
  158. $info = $this->remote->getDoctorList($id);
  159. return $info;
  160. }
  161. public function getVideoList($doctor)
  162. {
  163. $info = $this->remote->getVideoList($doctor);
  164. return $info;
  165. }
  166. public function getExamList($where_status,$class_where,$page,$doctor)
  167. {
  168. $info = $this->remote->getExamList($where_status,$class_where,$page,$doctor);
  169. return $info;
  170. }
  171. public function rejectStatus($id)
  172. {
  173. $info = $this->remote->rejectStatus($id);
  174. return $info;
  175. }
  176. }