Skip to content

根据bizTaskId获取待办任务详情

基本信息

中文名: 根据bizTaskId获取待办任务详情

接口名: /tc/openapi/task/getTaskDetail.json

所在目录: 待办

调用方式: GET(HTTPS)

最低可用版本V2.6.0

请求参数

名称类型是否必填示例值描述
bizTaskIdStringasdfadfsafdasdfadfsafd

返回参数

名称子参数名称子参数名称子参数名称类型描述
successBoolean是否成功
contentObject内容
└dataGetTaskDetailDTO返回内容
└└idString待办任务ID
└└titleString标题
└└assigneeString执行人ID(统一认证 userId)
└└assigneeNameString执行人名称
└└assigneeAvatarString执行人头像
└└assigneeHztAccountIdString执行人海政通账号id
└└todoTaskIdString待办实例id
└└statusInteger状态;0-待办,1-已办
└└businessIdString业务id,也是调用该接口时传入的bizTaskId
└└uuidString待办任务唯一ID
└successBoolean请求是否成功
└responseCodeString请求code
└responseMessageString请求msg

调用示例

java
Map<String, String> parameter = new HashMap<>();
parameter.put("bizTaskId", "xxx");
//拼装业务信息
HttpParameters parameters = HttpParameters.builder()
.api("/tc/openapi/task/getTaskDetail.json")
.region("INTER")
.accessKey("xxx")
.secretKey("xxx")
.queryParamsMap(parameter)
.requestUrl("https://api-one.digitalhainan.com.cn/apione")
.mediaType(MediaType.parse("application/json"))
.method("GET")
.build();

HttpReturn call = HttpCaller.getInstance().call(parameters);
log.info("响应:" + call.response);