OapiRhinoMosExecPerformQueryRequest.php 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.rhino.mos.exec.perform.query request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.07.03
  7. */
  8. class OapiRhinoMosExecPerformQueryRequest
  9. {
  10. /**
  11. * 生效条件
  12. **/
  13. private $activeCondition;
  14. /**
  15. * 实体ID列表
  16. **/
  17. private $entityIds;
  18. /**
  19. * 实体类型
  20. **/
  21. private $entityType;
  22. /**
  23. * 工序列表
  24. **/
  25. private $operationUids;
  26. /**
  27. * 订单ID
  28. **/
  29. private $orderId;
  30. /**
  31. * 执行状态
  32. **/
  33. private $performStatusList;
  34. /**
  35. * 租户ID
  36. **/
  37. private $tenantId;
  38. /**
  39. * 业务参数[这里先预留],这里是用户ID,比如钉钉用户ID
  40. **/
  41. private $userid;
  42. /**
  43. * 执行工位列表
  44. **/
  45. private $workstationCodes;
  46. private $apiParas = array();
  47. public function setActiveCondition($activeCondition)
  48. {
  49. $this->activeCondition = $activeCondition;
  50. $this->apiParas["active_condition"] = $activeCondition;
  51. }
  52. public function getActiveCondition()
  53. {
  54. return $this->activeCondition;
  55. }
  56. public function setEntityIds($entityIds)
  57. {
  58. $this->entityIds = $entityIds;
  59. $this->apiParas["entity_ids"] = $entityIds;
  60. }
  61. public function getEntityIds()
  62. {
  63. return $this->entityIds;
  64. }
  65. public function setEntityType($entityType)
  66. {
  67. $this->entityType = $entityType;
  68. $this->apiParas["entity_type"] = $entityType;
  69. }
  70. public function getEntityType()
  71. {
  72. return $this->entityType;
  73. }
  74. public function setOperationUids($operationUids)
  75. {
  76. $this->operationUids = $operationUids;
  77. $this->apiParas["operation_uids"] = $operationUids;
  78. }
  79. public function getOperationUids()
  80. {
  81. return $this->operationUids;
  82. }
  83. public function setOrderId($orderId)
  84. {
  85. $this->orderId = $orderId;
  86. $this->apiParas["order_id"] = $orderId;
  87. }
  88. public function getOrderId()
  89. {
  90. return $this->orderId;
  91. }
  92. public function setPerformStatusList($performStatusList)
  93. {
  94. $this->performStatusList = $performStatusList;
  95. $this->apiParas["perform_status_list"] = $performStatusList;
  96. }
  97. public function getPerformStatusList()
  98. {
  99. return $this->performStatusList;
  100. }
  101. public function setTenantId($tenantId)
  102. {
  103. $this->tenantId = $tenantId;
  104. $this->apiParas["tenant_id"] = $tenantId;
  105. }
  106. public function getTenantId()
  107. {
  108. return $this->tenantId;
  109. }
  110. public function setUserid($userid)
  111. {
  112. $this->userid = $userid;
  113. $this->apiParas["userid"] = $userid;
  114. }
  115. public function getUserid()
  116. {
  117. return $this->userid;
  118. }
  119. public function setWorkstationCodes($workstationCodes)
  120. {
  121. $this->workstationCodes = $workstationCodes;
  122. $this->apiParas["workstation_codes"] = $workstationCodes;
  123. }
  124. public function getWorkstationCodes()
  125. {
  126. return $this->workstationCodes;
  127. }
  128. public function getApiMethodName()
  129. {
  130. return "dingtalk.oapi.rhino.mos.exec.perform.query";
  131. }
  132. public function getApiParas()
  133. {
  134. return $this->apiParas;
  135. }
  136. public function check()
  137. {
  138. RequestCheckUtil::checkMaxListSize($this->entityIds,500,"entityIds");
  139. RequestCheckUtil::checkNotNull($this->entityType,"entityType");
  140. RequestCheckUtil::checkMaxListSize($this->operationUids,500,"operationUids");
  141. RequestCheckUtil::checkMaxListSize($this->performStatusList,20,"performStatusList");
  142. RequestCheckUtil::checkNotNull($this->tenantId,"tenantId");
  143. RequestCheckUtil::checkMaxListSize($this->workstationCodes,20,"workstationCodes");
  144. }
  145. public function putOtherTextParam($key, $value) {
  146. $this->apiParas[$key] = $value;
  147. $this->$key = $value;
  148. }
  149. }