OapiRhinoMosExecPerformStartRequest.php 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.rhino.mos.exec.perform.start request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2020.07.03
  7. */
  8. class OapiRhinoMosExecPerformStartRequest
  9. {
  10. /**
  11. * 执行设备ID列表
  12. **/
  13. private $deviceIds;
  14. /**
  15. * 工序执行记录ID列表
  16. **/
  17. private $operationPerformRecordIds;
  18. /**
  19. * 订单ID
  20. **/
  21. private $orderId;
  22. /**
  23. * 租户ID
  24. **/
  25. private $tenantId;
  26. /**
  27. * 系统参数
  28. **/
  29. private $userid;
  30. /**
  31. * 执行员工列表
  32. **/
  33. private $workNos;
  34. private $apiParas = array();
  35. public function setDeviceIds($deviceIds)
  36. {
  37. $this->deviceIds = $deviceIds;
  38. $this->apiParas["device_ids"] = $deviceIds;
  39. }
  40. public function getDeviceIds()
  41. {
  42. return $this->deviceIds;
  43. }
  44. public function setOperationPerformRecordIds($operationPerformRecordIds)
  45. {
  46. $this->operationPerformRecordIds = $operationPerformRecordIds;
  47. $this->apiParas["operation_perform_record_ids"] = $operationPerformRecordIds;
  48. }
  49. public function getOperationPerformRecordIds()
  50. {
  51. return $this->operationPerformRecordIds;
  52. }
  53. public function setOrderId($orderId)
  54. {
  55. $this->orderId = $orderId;
  56. $this->apiParas["order_id"] = $orderId;
  57. }
  58. public function getOrderId()
  59. {
  60. return $this->orderId;
  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 setUserid($userid)
  72. {
  73. $this->userid = $userid;
  74. $this->apiParas["userid"] = $userid;
  75. }
  76. public function getUserid()
  77. {
  78. return $this->userid;
  79. }
  80. public function setWorkNos($workNos)
  81. {
  82. $this->workNos = $workNos;
  83. $this->apiParas["work_nos"] = $workNos;
  84. }
  85. public function getWorkNos()
  86. {
  87. return $this->workNos;
  88. }
  89. public function getApiMethodName()
  90. {
  91. return "dingtalk.oapi.rhino.mos.exec.perform.start";
  92. }
  93. public function getApiParas()
  94. {
  95. return $this->apiParas;
  96. }
  97. public function check()
  98. {
  99. RequestCheckUtil::checkMaxListSize($this->deviceIds,500,"deviceIds");
  100. RequestCheckUtil::checkNotNull($this->operationPerformRecordIds,"operationPerformRecordIds");
  101. RequestCheckUtil::checkMaxListSize($this->operationPerformRecordIds,500,"operationPerformRecordIds");
  102. RequestCheckUtil::checkNotNull($this->tenantId,"tenantId");
  103. RequestCheckUtil::checkMaxListSize($this->workNos,500,"workNos");
  104. }
  105. public function putOtherTextParam($key, $value) {
  106. $this->apiParas[$key] = $value;
  107. $this->$key = $value;
  108. }
  109. }