123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- <?php
- /**
- * dingtalk API: dingtalk.oapi.rhino.mos.exec.perform.query request
- *
- * @author auto create
- * @since 1.0, 2020.07.03
- */
- class OapiRhinoMosExecPerformQueryRequest
- {
- /**
- * 生效条件
- **/
- private $activeCondition;
-
- /**
- * 实体ID列表
- **/
- private $entityIds;
-
- /**
- * 实体类型
- **/
- private $entityType;
-
- /**
- * 工序列表
- **/
- private $operationUids;
-
- /**
- * 订单ID
- **/
- private $orderId;
-
- /**
- * 执行状态
- **/
- private $performStatusList;
-
- /**
- * 租户ID
- **/
- private $tenantId;
-
- /**
- * 业务参数[这里先预留],这里是用户ID,比如钉钉用户ID
- **/
- private $userid;
-
- /**
- * 执行工位列表
- **/
- private $workstationCodes;
-
- private $apiParas = array();
-
- public function setActiveCondition($activeCondition)
- {
- $this->activeCondition = $activeCondition;
- $this->apiParas["active_condition"] = $activeCondition;
- }
- public function getActiveCondition()
- {
- return $this->activeCondition;
- }
- public function setEntityIds($entityIds)
- {
- $this->entityIds = $entityIds;
- $this->apiParas["entity_ids"] = $entityIds;
- }
- public function getEntityIds()
- {
- return $this->entityIds;
- }
- public function setEntityType($entityType)
- {
- $this->entityType = $entityType;
- $this->apiParas["entity_type"] = $entityType;
- }
- public function getEntityType()
- {
- return $this->entityType;
- }
- public function setOperationUids($operationUids)
- {
- $this->operationUids = $operationUids;
- $this->apiParas["operation_uids"] = $operationUids;
- }
- public function getOperationUids()
- {
- return $this->operationUids;
- }
- public function setOrderId($orderId)
- {
- $this->orderId = $orderId;
- $this->apiParas["order_id"] = $orderId;
- }
- public function getOrderId()
- {
- return $this->orderId;
- }
- public function setPerformStatusList($performStatusList)
- {
- $this->performStatusList = $performStatusList;
- $this->apiParas["perform_status_list"] = $performStatusList;
- }
- public function getPerformStatusList()
- {
- return $this->performStatusList;
- }
- public function setTenantId($tenantId)
- {
- $this->tenantId = $tenantId;
- $this->apiParas["tenant_id"] = $tenantId;
- }
- public function getTenantId()
- {
- return $this->tenantId;
- }
- public function setUserid($userid)
- {
- $this->userid = $userid;
- $this->apiParas["userid"] = $userid;
- }
- public function getUserid()
- {
- return $this->userid;
- }
- public function setWorkstationCodes($workstationCodes)
- {
- $this->workstationCodes = $workstationCodes;
- $this->apiParas["workstation_codes"] = $workstationCodes;
- }
- public function getWorkstationCodes()
- {
- return $this->workstationCodes;
- }
- public function getApiMethodName()
- {
- return "dingtalk.oapi.rhino.mos.exec.perform.query";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkMaxListSize($this->entityIds,500,"entityIds");
- RequestCheckUtil::checkNotNull($this->entityType,"entityType");
- RequestCheckUtil::checkMaxListSize($this->operationUids,500,"operationUids");
- RequestCheckUtil::checkMaxListSize($this->performStatusList,20,"performStatusList");
- RequestCheckUtil::checkNotNull($this->tenantId,"tenantId");
- RequestCheckUtil::checkMaxListSize($this->workstationCodes,20,"workstationCodes");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|