XzDao.php 5.5 KB

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