OapiRhinoMosExecPerformReworkRequest.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.rhino.mos.exec.perform.rework request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.07.03
  7. */
  8. class OapiRhinoMosExecPerformReworkRequest
  9. {
  10. /**
  11. * 执行上下文
  12. **/
  13. private $context;
  14. /**
  15. * 订单ID
  16. **/
  17. private $orderId;
  18. /**
  19. * 要重新开始的工序执行ID
  20. **/
  21. private $reworkStartId;
  22. /**
  23. * 租户ID
  24. **/
  25. private $tenantId;
  26. /**
  27. * 要失效的工序执行ID列表
  28. **/
  29. private $toInactiveIds;
  30. /**
  31. * 系统参数
  32. **/
  33. private $userid;
  34. private $apiParas = array();
  35. public function setContext($context)
  36. {
  37. $this->context = $context;
  38. $this->apiParas["context"] = $context;
  39. }
  40. public function getContext()
  41. {
  42. return $this->context;
  43. }
  44. public function setOrderId($orderId)
  45. {
  46. $this->orderId = $orderId;
  47. $this->apiParas["order_id"] = $orderId;
  48. }
  49. public function getOrderId()
  50. {
  51. return $this->orderId;
  52. }
  53. public function setReworkStartId($reworkStartId)
  54. {
  55. $this->reworkStartId = $reworkStartId;
  56. $this->apiParas["rework_start_id"] = $reworkStartId;
  57. }
  58. public function getReworkStartId()
  59. {
  60. return $this->reworkStartId;
  61. }
  62. public function setTenantId($tenantId)
  63. {
  64. $this->tenantId = $tenantId;
  65. $this->apiParas["tenant_id"] = $tenantId;
  66. }
  67. public function getTenantId()
  68. {
  69. return $this->tenantId;
  70. }
  71. public function setToInactiveIds($toInactiveIds)
  72. {
  73. $this->toInactiveIds = $toInactiveIds;
  74. $this->apiParas["to_inactive_ids"] = $toInactiveIds;
  75. }
  76. public function getToInactiveIds()
  77. {
  78. return $this->toInactiveIds;
  79. }
  80. public function setUserid($userid)
  81. {
  82. $this->userid = $userid;
  83. $this->apiParas["userid"] = $userid;
  84. }
  85. public function getUserid()
  86. {
  87. return $this->userid;
  88. }
  89. public function getApiMethodName()
  90. {
  91. return "dingtalk.oapi.rhino.mos.exec.perform.rework";
  92. }
  93. public function getApiParas()
  94. {
  95. return $this->apiParas;
  96. }
  97. public function check()
  98. {
  99. RequestCheckUtil::checkNotNull($this->reworkStartId,"reworkStartId");
  100. RequestCheckUtil::checkNotNull($this->tenantId,"tenantId");
  101. RequestCheckUtil::checkNotNull($this->toInactiveIds,"toInactiveIds");
  102. RequestCheckUtil::checkMaxListSize($this->toInactiveIds,500,"toInactiveIds");
  103. }
  104. public function putOtherTextParam($key, $value) {
  105. $this->apiParas[$key] = $value;
  106. $this->$key = $value;
  107. }
  108. }