销外出审批发起接口

接口说明: 销外出审批发起接口,必须在审批里开启销外出审批。(与审批模块的外出申请审批发起接口配合使用)

请求方式:POST(HTTPS)
请求地址:https://api.xinrenxinshi.com/v5/workflow/apply/leaveout/cancel

请求Header:

key value
access_token 获取的access_token的实际值

Query参数:

key value
sign 签名值

Body参数:

参数 类型 必传(Y/N) 说明
employeeId String Y 员工id
timeUnit Integer Y 外出时间类型 0--按天外出,1–按小时外出
startDate String Y 外出开始日期,日期格式:yyyy-MM-dd HH:mm:ss
startTime Integer N 如果是按天申请外出的话 则必填 其中0:表示上半天 1:表示下半天
endDate String Y 外出结束日期,日期格式:yyyy-MM-dd HH:mm:ss
endTime Integer N 如果是按天申请外出的话 则必填 其中0:表示上半天 1:表示下半天
approvalId String Y 原审批sid
timestamp Long Y 请求时间戳(精确到毫秒)

返回结果:

参数 类型 必传(Y/N) 说明
errcode Integer Y 0成功,其他失败
errmsg String Y 结果描述
data String Y 处理成功时返回

请求示例(HTTPS):

https://api.xinrenxinshi.com/v5/workflow/apply/leaveout/cancel?sign=MvEIky%2Fjxk0x4Sot%2BNEjFXztnV8%3D

请求Body示例:

{
  "employeeId":"a42c11aed7b645a2be77cd0a54cc33da",
  "timeUnit":1,
  "startDate":"22023-03-03 08:18:00",
  "startTime":0,
  "endDate":"2023-03-04 18:31:09",
  "endTime":1,
  "timestamp":1652682937751,
  "approvalId": "913086656679247873"
}

SDK请求示例(java):

FlowCancelLeaveOutRequest request =new FlowCancelLeaveOutRequest(access_token());
request.setStartDate("2023-03-03 08:18:00");
request.setTimeUnit(1);
request.setStartTime(0);
request.setEndDate("2023-03-04 18:31:09");
request.setEndTime(1);
request.setEmployeeId("a42c11aed7b645a2be77cd0a54cc33da");
request.setApprovalId("913086656679247873");
OpenapiResponse<ApprovalApplyResponse> approvalApplyResponseOpenapiResponse = XrxsApprovalService.cancelLeaveOutApply(request);

响应示例:

{
  "errcode": 0,
  "errmsg": "成功",
  "data": {
    "sid":913087154631213056
   }
}
2024 © 企家有道网络技术(北京)有限公司版权所有@京ICP备15035315号 all right reserved,powered by Gitbookupdate by: 2024-01-15 15:26:15

results matching ""

    No results matching ""