XzDao.php 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <?php
  2. namespace app\api\dao\xz;
  3. use app\api\actions\ZskkCache;
  4. use app\api\dao\ZskkDefaultDao;
  5. use app\api\model\monitor\MonitorexamModel;
  6. use app\api\model\xz\XzModel;
  7. /**
  8. * 后台控制器基类
  9. * 接口方法权限 必传参数 接口返回 错误抛出 通用参数处理
  10. */
  11. class XzDao extends ZskkDefaultDao {
  12. protected $flag = true;
  13. protected $logName = "XzDao";
  14. protected $xz = null;
  15. protected $monitorexamModel = null;
  16. public function __construct(XzModel $xzModel,MonitorexamModel $monitorexamModel)
  17. {
  18. parent::__construct();
  19. $this->xz = $xzModel;
  20. $this->monitorexamModel = $monitorexamModel;
  21. }
  22. public function insertXz($data)
  23. {
  24. $info = $this->xz->insertXz($data);
  25. return $info;
  26. }
  27. public function checkXz($where)
  28. {
  29. $info = $this->xz->checkXz($where);
  30. return $info;
  31. }
  32. public function insertStudies($data)
  33. {
  34. $info = $this->xz->insertStudies($data);
  35. return $info;
  36. }
  37. public function insertPatient($data)
  38. {
  39. $info = $this->xz->insertPatient($data);
  40. return $info;
  41. }
  42. public function insertExam($data)
  43. {
  44. $info = $this->xz->insertExam($data);
  45. return $info;
  46. }
  47. public function updateStudies($id,$examId)
  48. {
  49. $info = $this->xz->updateStudies($id,$examId);
  50. return $info;
  51. }
  52. public function saveMoneyWater($data)
  53. {
  54. $info = $this->xz->saveMoneyWater($data);
  55. return $info;
  56. }
  57. public function updateXz($where,$updateXz)
  58. {
  59. $info = $this->xz->updateXz($where,$updateXz);
  60. return $info;
  61. }
  62. public function updateStatus($where,$status)
  63. {
  64. $info = $this->xz->updateStatus($where,$status);
  65. return $info;
  66. }
  67. public function getXzData($id)
  68. {
  69. $info = $this->xz->getXzData($id);
  70. return $info;
  71. }
  72. public function getExamData($id)
  73. {
  74. $info = $this->xz->getExamData($id);
  75. return $info;
  76. }
  77. public function getExamDataById($id)
  78. {
  79. $info = $this->xz->getExamDataById($id);
  80. return $info;
  81. }
  82. public function getImageInfo($study)
  83. {
  84. $info = $this->xz->getImageInfo($study);
  85. return $info;
  86. }
  87. public function getReport($id)
  88. {
  89. $info = $this->xz->getReport($id);
  90. return $info;
  91. }
  92. public function getDoctorName($id)
  93. {
  94. $info = $this->xz->getDoctorName($id);
  95. return $info;
  96. }
  97. public function getUid($id)
  98. {
  99. $uid = $this->xz->getUid($id);
  100. return $uid;
  101. }
  102. public function getAccession($id)
  103. {
  104. $info = $this->xz->getAccession($id);
  105. return $info;
  106. }
  107. public function checkIsSet($studyId,$studyUid='',$institution='')
  108. {
  109. $id = $this->xz->check($studyId,$studyUid,$institution);
  110. return $id;
  111. }
  112. public function getWaterLog($examId,$insId)
  113. {
  114. $id = $this->xz->getWaterLog($examId,$insId);
  115. return $id;
  116. }
  117. public function getPushInfo($id)
  118. {
  119. $data = $this->xz->getPushInfo($id);
  120. return $data;
  121. }
  122. public function getOpenId($ids)
  123. {
  124. $data = $this->xz->getOpenId($ids);
  125. return $data;
  126. }
  127. public function getInsFilmInfo($id)
  128. {
  129. $info = $this->xz->getInsFilmInfo($id);
  130. return $info;
  131. }
  132. public function getBodyText($body)
  133. {
  134. $info = $this->xz->getBodyText($body);
  135. return $info;
  136. }
  137. public function getExam($key,$value,$institutionId)
  138. {
  139. $id = $this->xz->getExam($key,$value,$institutionId);
  140. return $id;
  141. }
  142. public function updateExam($id,$update)
  143. {
  144. $info = $this->xz->updateExam($update,$id);
  145. return $info;
  146. }
  147. public function getStudyUid($id)
  148. {
  149. $id = $this->xz->getStudyUid($id);
  150. return $id;
  151. }
  152. public function getApiAction($id,$action)
  153. {
  154. $info = $this->xz->getApiAction($id,$action);
  155. return $info;
  156. }
  157. public function checkDoctor($name)
  158. {
  159. $info = $this->xz->checkDoctor($name);
  160. return $info;
  161. }
  162. public function getApi($id)
  163. {
  164. $info = $this->xz->getApi($id);
  165. return $info;
  166. }
  167. public function getInterface($ids)
  168. {
  169. $info = $this->xz->getInterface($ids);
  170. return $info;
  171. }
  172. public function getApis($institution,$action)
  173. {
  174. $info = $this->xz->getApis($institution,$action);
  175. return $info;
  176. }
  177. public function getInstitutionName($id)
  178. {
  179. $name = $this->xz->getInstitutionName($id);
  180. return $name;
  181. }
  182. public function getInsValue($id,$value)
  183. {
  184. $info = $this->xz->getInsValue($id,$value);
  185. return $info;
  186. }
  187. public function saveImageNode($info)
  188. {
  189. $info = $this->xz->saveImageNode($info);
  190. return $info;
  191. }
  192. public function getImageNode($where)
  193. {
  194. $info = $this->xz->getImageNode($where);
  195. return $info;
  196. }
  197. public function getWjwData()
  198. {
  199. $data = $this->xz->getWjwData();
  200. return $data;
  201. }
  202. public function getRemoteCount()
  203. {
  204. $data = $this->xz->getRemoteCount();
  205. return $data;
  206. }
  207. public function getYjRemote($page,$num)
  208. {
  209. $data = $this->xz->getYjRemote($page,$num);
  210. return $data;
  211. }
  212. public function getYjDoctor()
  213. {
  214. $data = $this->xz->getYjDoctor();
  215. return $data;
  216. }
  217. public function saveSms($data)
  218. {
  219. $data = $this->xz->saveSms($data);
  220. return $data;
  221. }
  222. public function insertSpecialLog($time, $diff)
  223. {
  224. $data = $this->xz->insertSpecialLog($time, $diff);
  225. return $data;
  226. }
  227. public function saveMonitorExam($arr)
  228. {
  229. $this->monitorexamModel->insert($arr);
  230. }
  231. }