AlibabaAlihealthSynergyYzwSavedrugreportRequest.php 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246
  1. <?php
  2. /**
  3. * TOP API: alibaba.alihealth.synergy.yzw.savedrugreport request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2024.04.01
  7. */
  8. class AlibabaAlihealthSynergyYzwSavedrugreportRequest
  9. {
  10. /**
  11. * 批次号
  12. **/
  13. private $batchNo;
  14. /**
  15. * 药品ID
  16. **/
  17. private $drugEntBaseInfoId;
  18. /**
  19. * 文件类型支持:pdf,jpg,jpeg, png
  20. **/
  21. private $fileType;
  22. /**
  23. * 是否要显示日期
  24. **/
  25. private $noDate;
  26. /**
  27. * X坐标
  28. **/
  29. private $positionX;
  30. /**
  31. * Y坐标
  32. **/
  33. private $positionY;
  34. /**
  35. * 生产日期
  36. **/
  37. private $produceDate;
  38. /**
  39. * 企业ID
  40. **/
  41. private $refEntId;
  42. /**
  43. * 报告数据
  44. **/
  45. private $reportData;
  46. /**
  47. * 报告日期
  48. **/
  49. private $reportDate;
  50. /**
  51. * 药检报告号
  52. **/
  53. private $reportNo;
  54. /**
  55. * 印章名称
  56. **/
  57. private $sealName;
  58. /**
  59. * 用户id
  60. **/
  61. private $userId;
  62. private $apiParas = array();
  63. public function setBatchNo($batchNo)
  64. {
  65. $this->batchNo = $batchNo;
  66. $this->apiParas["batch_no"] = $batchNo;
  67. }
  68. public function getBatchNo()
  69. {
  70. return $this->batchNo;
  71. }
  72. public function setDrugEntBaseInfoId($drugEntBaseInfoId)
  73. {
  74. $this->drugEntBaseInfoId = $drugEntBaseInfoId;
  75. $this->apiParas["drug_ent_base_info_id"] = $drugEntBaseInfoId;
  76. }
  77. public function getDrugEntBaseInfoId()
  78. {
  79. return $this->drugEntBaseInfoId;
  80. }
  81. public function setFileType($fileType)
  82. {
  83. $this->fileType = $fileType;
  84. $this->apiParas["file_type"] = $fileType;
  85. }
  86. public function getFileType()
  87. {
  88. return $this->fileType;
  89. }
  90. public function setNoDate($noDate)
  91. {
  92. $this->noDate = $noDate;
  93. $this->apiParas["no_date"] = $noDate;
  94. }
  95. public function getNoDate()
  96. {
  97. return $this->noDate;
  98. }
  99. public function setPositionX($positionX)
  100. {
  101. $this->positionX = $positionX;
  102. $this->apiParas["position_x"] = $positionX;
  103. }
  104. public function getPositionX()
  105. {
  106. return $this->positionX;
  107. }
  108. public function setPositionY($positionY)
  109. {
  110. $this->positionY = $positionY;
  111. $this->apiParas["position_y"] = $positionY;
  112. }
  113. public function getPositionY()
  114. {
  115. return $this->positionY;
  116. }
  117. public function setProduceDate($produceDate)
  118. {
  119. $this->produceDate = $produceDate;
  120. $this->apiParas["produce_date"] = $produceDate;
  121. }
  122. public function getProduceDate()
  123. {
  124. return $this->produceDate;
  125. }
  126. public function setRefEntId($refEntId)
  127. {
  128. $this->refEntId = $refEntId;
  129. $this->apiParas["ref_ent_id"] = $refEntId;
  130. }
  131. public function getRefEntId()
  132. {
  133. return $this->refEntId;
  134. }
  135. public function setReportData($reportData)
  136. {
  137. $this->reportData = $reportData;
  138. $this->apiParas["report_data"] = $reportData;
  139. }
  140. public function getReportData()
  141. {
  142. return $this->reportData;
  143. }
  144. public function setReportDate($reportDate)
  145. {
  146. $this->reportDate = $reportDate;
  147. $this->apiParas["report_date"] = $reportDate;
  148. }
  149. public function getReportDate()
  150. {
  151. return $this->reportDate;
  152. }
  153. public function setReportNo($reportNo)
  154. {
  155. $this->reportNo = $reportNo;
  156. $this->apiParas["report_no"] = $reportNo;
  157. }
  158. public function getReportNo()
  159. {
  160. return $this->reportNo;
  161. }
  162. public function setSealName($sealName)
  163. {
  164. $this->sealName = $sealName;
  165. $this->apiParas["seal_name"] = $sealName;
  166. }
  167. public function getSealName()
  168. {
  169. return $this->sealName;
  170. }
  171. public function setUserId($userId)
  172. {
  173. $this->userId = $userId;
  174. $this->apiParas["user_id"] = $userId;
  175. }
  176. public function getUserId()
  177. {
  178. return $this->userId;
  179. }
  180. public function getApiMethodName()
  181. {
  182. return "alibaba.alihealth.synergy.yzw.savedrugreport";
  183. }
  184. public function getApiParas()
  185. {
  186. return $this->apiParas;
  187. }
  188. public function check()
  189. {
  190. RequestCheckUtil::checkNotNull($this->batchNo,"batchNo");
  191. RequestCheckUtil::checkNotNull($this->drugEntBaseInfoId,"drugEntBaseInfoId");
  192. RequestCheckUtil::checkNotNull($this->fileType,"fileType");
  193. RequestCheckUtil::checkNotNull($this->refEntId,"refEntId");
  194. RequestCheckUtil::checkNotNull($this->reportData,"reportData");
  195. RequestCheckUtil::checkNotNull($this->sealName,"sealName");
  196. RequestCheckUtil::checkNotNull($this->userId,"userId");
  197. }
  198. public function putOtherTextParam($key, $value) {
  199. $this->apiParas[$key] = $value;
  200. $this->$key = $value;
  201. }
  202. }