approveId = $approveId; $this->apiParas["approve_id"] = $approveId; } public function getApproveId() { return $this->approveId; } public function setBizType($bizType) { $this->bizType = $bizType; $this->apiParas["biz_type"] = $bizType; } public function getBizType() { return $this->bizType; } public function setCalculateModel($calculateModel) { $this->calculateModel = $calculateModel; $this->apiParas["calculate_model"] = $calculateModel; } public function getCalculateModel() { return $this->calculateModel; } public function setDingtalkApproveId($dingtalkApproveId) { $this->dingtalkApproveId = $dingtalkApproveId; $this->apiParas["dingtalk_approve_id"] = $dingtalkApproveId; } public function getDingtalkApproveId() { return $this->dingtalkApproveId; } public function setDurationUnit($durationUnit) { $this->durationUnit = $durationUnit; $this->apiParas["duration_unit"] = $durationUnit; } public function getDurationUnit() { return $this->durationUnit; } public function setFromTime($fromTime) { $this->fromTime = $fromTime; $this->apiParas["from_time"] = $fromTime; } public function getFromTime() { return $this->fromTime; } public function setJumpUrl($jumpUrl) { $this->jumpUrl = $jumpUrl; $this->apiParas["jump_url"] = $jumpUrl; } public function getJumpUrl() { return $this->jumpUrl; } public function setOvertimeDuration($overtimeDuration) { $this->overtimeDuration = $overtimeDuration; $this->apiParas["overtime_duration"] = $overtimeDuration; } public function getOvertimeDuration() { return $this->overtimeDuration; } public function setOvertimeToMore($overtimeToMore) { $this->overtimeToMore = $overtimeToMore; $this->apiParas["overtime_to_more"] = $overtimeToMore; } public function getOvertimeToMore() { return $this->overtimeToMore; } public function setSubType($subType) { $this->subType = $subType; $this->apiParas["sub_type"] = $subType; } public function getSubType() { return $this->subType; } public function setTagName($tagName) { $this->tagName = $tagName; $this->apiParas["tag_name"] = $tagName; } public function getTagName() { return $this->tagName; } public function setToTime($toTime) { $this->toTime = $toTime; $this->apiParas["to_time"] = $toTime; } public function getToTime() { return $this->toTime; } public function setUserid($userid) { $this->userid = $userid; $this->apiParas["userid"] = $userid; } public function getUserid() { return $this->userid; } public function getApiMethodName() { return "dingtalk.oapi.attendance.approve.finish"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkMaxLength($this->approveId,100,"approveId"); RequestCheckUtil::checkMaxLength($this->dingtalkApproveId,64,"dingtalkApproveId"); RequestCheckUtil::checkMaxLength($this->jumpUrl,200,"jumpUrl"); RequestCheckUtil::checkMaxLength($this->subType,20,"subType"); RequestCheckUtil::checkMaxLength($this->tagName,20,"tagName"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }