AlibabaAlihealthSynergyYzwDruginfoQueryRequest.php 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?php
  2. /**
  3. * TOP API: alibaba.alihealth.synergy.yzw.druginfo.query request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2025.10.22
  7. */
  8. class AlibabaAlihealthSynergyYzwDruginfoQueryRequest
  9. {
  10. /**
  11. * 批次号
  12. **/
  13. private $batchNo;
  14. /**
  15. * mah企业refEntId
  16. **/
  17. private $mahRefEntId;
  18. /**
  19. * 生产企业refEntId
  20. **/
  21. private $produceRefEntId;
  22. /**
  23. * 调用者企业id
  24. **/
  25. private $refEntId;
  26. private $apiParas = array();
  27. public function setBatchNo($batchNo)
  28. {
  29. $this->batchNo = $batchNo;
  30. $this->apiParas["batch_no"] = $batchNo;
  31. }
  32. public function getBatchNo()
  33. {
  34. return $this->batchNo;
  35. }
  36. public function setMahRefEntId($mahRefEntId)
  37. {
  38. $this->mahRefEntId = $mahRefEntId;
  39. $this->apiParas["mah_ref_ent_id"] = $mahRefEntId;
  40. }
  41. public function getMahRefEntId()
  42. {
  43. return $this->mahRefEntId;
  44. }
  45. public function setProduceRefEntId($produceRefEntId)
  46. {
  47. $this->produceRefEntId = $produceRefEntId;
  48. $this->apiParas["produce_ref_ent_id"] = $produceRefEntId;
  49. }
  50. public function getProduceRefEntId()
  51. {
  52. return $this->produceRefEntId;
  53. }
  54. public function setRefEntId($refEntId)
  55. {
  56. $this->refEntId = $refEntId;
  57. $this->apiParas["ref_ent_id"] = $refEntId;
  58. }
  59. public function getRefEntId()
  60. {
  61. return $this->refEntId;
  62. }
  63. public function getApiMethodName()
  64. {
  65. return "alibaba.alihealth.synergy.yzw.druginfo.query";
  66. }
  67. public function getApiParas()
  68. {
  69. return $this->apiParas;
  70. }
  71. public function check()
  72. {
  73. RequestCheckUtil::checkNotNull($this->batchNo,"batchNo");
  74. RequestCheckUtil::checkNotNull($this->mahRefEntId,"mahRefEntId");
  75. RequestCheckUtil::checkNotNull($this->produceRefEntId,"produceRefEntId");
  76. RequestCheckUtil::checkNotNull($this->refEntId,"refEntId");
  77. }
  78. public function putOtherTextParam($key, $value) {
  79. $this->apiParas[$key] = $value;
  80. $this->$key = $value;
  81. }
  82. }