查询条目采集结果(API名称:findTaskCollectinfo)
功能介绍
该接口用于查询ISDP+对应租户下的质量检查任务对应的采集条目上的图片、现场设备数量、设备信息等。
相关接口
接口名称 |
调用说明 |
---|---|
调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 |
调用流程
URL
请求方式 |
HTTPS地址 |
服务架构 |
消息体类型 |
---|---|---|---|
POST |
https://isdp+域名/openapi/v1/OpenTask/findTaskCollectinfo |
OpenAPI |
application/json |
请求头
KEY |
VALUE |
是否必填 |
描述 |
---|---|---|---|
Content-Type |
application/json |
是 |
无 |
Authorization |
bearer ${access_token} |
是 |
bearer +“ ”+5.2.1中获取的access_token的值 |
请求参数
参数 |
类型 |
是否必填 |
描述 |
---|---|---|---|
customerTaskId |
List<String> |
否 |
客户任务id,一次最多500 |
taskId |
List< Long > |
否 |
任务id,一次最多500 |
projectNo |
String |
否 |
项目编码 |
signSiteCode |
List<String> |
否 |
作业对象编码,一次最多500 |
updateBeginDate |
String |
否 |
任务修改开始时间:YYYY-MM-DD |
updateEndDate |
String |
否 |
任务修改结束时间:YYYY-MM-DD |
completeBeginDate |
String |
否 |
任务完成开始时间:YYYY-MM-DD |
completeEndDate |
String |
否 |
任务完成结束时间:YYYY-MM-DD |
status |
int |
否 |
任务状态:
|
PageStart |
int |
是 |
数据起始行 |
PageSize |
int |
是 |
分页大小 |
includeDelete |
int |
否 |
是否包含删除数据1:包含;0或者空:不包含 |
sceneTaskIdList |
List<Long> |
否 |
任务ID集合 |
响应参数
参数 |
类型 |
描述 |
---|---|---|
stateCode |
String |
响应状态码:
|
errorMessage |
String |
响应描述 |
pos |
Int |
当前页,从0开始 |
total_count |
Int |
总数 |
result |
Object |
响应结果内容data |
参数 |
类型 |
描述 |
---|---|---|
Data |
List |
还回数据List,每条数据,是任务对应的检查的数据。 |
taskId |
Long |
检查单ID。 |
sceneTaskId |
Long |
任务ID。 |
templateId |
Long |
模板ID。 |
kcp |
List |
模板下的kcp。 |
item |
List |
kcp下的item,如果isNa为Y,整个item无需采集。 |
outPutMessages |
List |
item下的输出项信息。 |
collectDatas |
List |
输出项下的采集信息。 |
totalItemCnt |
int |
总条目数 |
committedItemCnt |
int |
已提交条目数(可能为空) |
handledItemCnt |
int |
已审核条目数(可能为空) |
rejectedItemCnt |
int |
已驳回条目数(可能为空) |
toBeReviewed |
int |
待审核条目数(可能为空) |
deleteInfo |
Map |
任务删除信息对象(可能为空) |
deleteInfo.sceneTaskId |
Long |
任务ID |
deleteInfo.deleteFlag |
int |
删除标识0:未删除;1:已删除 |
deleteInfo. deleteReason |
String |
删除原因 |
data出参:
参数 |
类型 |
描述 |
---|---|---|
projectNo |
String |
项目编码 |
customerTaskId |
String |
客户任务id |
taskId |
Long |
任务id |
taskName |
String |
任务名称 |
signSiteId |
String |
作业对象id |
signSiteCode |
String |
作业对象编码 |
signSiteName |
String |
作业对象名称 |
signInDate |
Date |
签到时间 |
completeDate |
Date |
任务完成时间(任务完成时才有) |
partner |
String |
供应商名称 |
partnerContacter |
String |
供应商负责人 |
assignedUserName |
String |
执行人名称 |
firstCommitter |
String |
首次提交人名字 |
firstSupplierName |
String |
首次提交人单位 |
firstSubmitTime |
Date |
首次提交时间 |
lastCommitter |
String |
最后一次提交人名字 |
lastSubmitTime |
String |
最后一次提交人单位 |
lastSubmitTime |
Date |
最后一次提交时间 |
reviewBeginDate |
Date |
首次评审时间 |
reviewEndDate |
Date |
最后评审时间 |
kcps |
List<Object> |
任务kcp列表 |
kcps出参:
参数 |
类型 |
描述 |
---|---|---|
kcpId |
Long |
kcp id |
kcpName |
String |
kcp 名称 |
items |
List<Object> |
任务kcp列表 |
items出参:
参数 |
类型 |
描述 |
---|---|---|
itemId |
Long |
条目id |
itemName |
String |
条目名称 |
itemGuide |
String |
条目指导 |
itemStandard |
String |
条目标准 |
isQualification |
Int |
是否人脸资质校验:
|
qualificationType |
Int |
资质类别:
|
outPutMessages |
List<Object> |
输出项列表 |
outPutMessages出参:
参数 |
类型 |
描述 |
---|---|---|
outPutName |
String |
输出项名字 |
outPutId |
Long |
输出项id |
outPutType |
Int |
输出项类型:1-枚举;2- 文本;3-图片/视频;4-多枚举;5-整数;6-小数;7-日期;9-条码;10-NA;11-GPS;13-图片;14-视频;15-时间;16-文件 |
isNecessary |
Int |
是否必填:
|
collectDatas |
List<Object> |
数据采集列表 |
collectDatas出参:
参数 |
类型 |
描述 |
---|---|---|
outPutId |
Long |
输出项id |
content |
String |
采集内容,如果是3-视频、13-图片、16-文件,则采集内容就是文件id |
creationDate |
Date |
图片创建时间 |
identifies |
List<Object> |
资质采集列表 |
identifies出参:
参数 |
类型 |
描述 |
---|---|---|
taskId |
Long |
任务id |
outPutId |
Long |
输出项id |
identifyAccount |
String |
人脸识别到的账号 |
creationDate |
Date |
人脸识别的时间,资质条目才涉及 |
personQualification |
String |
人脸识别到的账号对应的资质 |
请求示例
{ "customerTaskId": ["123456","23456"], "taskId":[123456,23456], "projectNo ": "123-my project", "signSiteCode": ["my-signSiteCode"], "updateBeginDate ": "2020-09-01", "updateEndDate ": "2020-09-09" }
响应示例
{ "stateCode": "0", "errorMessage": null, "result": { "data": [ { "projectNo": "0813-xiaoXX编码", "customerTaskId": null, "taskId": 203742, "taskName": "0813-xiaoXX编码-0813-xiaoXX-XX区-0813-xiaoXX位置-0813-xiaoXX位置-XX代表处-dddd33", "signSiteId": 420421, "signSiteCode": "0813-xiaoXX作业对象", "signSiteName": "0813-xiaoXX作业对象", "templateId": 4148, "templateCode": "QC202XXXXXXXXXXXXX", "templateName": "巡检-xiaoXX0804", "version": "1.0", "updateDate": "2020-08-27T08:30:51.000+00:00", "createDate": "2020-08-26T07:04:20.000+00:00", "planStartTime": null, "planEndTime": "2020-08-28T16:00:00.000+00:00", "partner": "XX供应商", "status": 2, "statusCollection": 3, "statusApprove": 4, "firstCommitter": null, "firstSupplierName": null, "firstSubmitDate": null, "lastcommitter": "刘XX", "lastSubmitDate": null, "reviewEndDate": "2020-08-27T08:30:51.000+00:00", "reviewBeginDate": "2020-08-26T07:20:58.000+00:00", "kcps": [ { "kcpId": 4243, "kcpName": "验证kcp1", "templateId": 4148, "items": [ { "itemId": 6165, "kcpId": 4243, "itemName": "验证含有自检自检问题+图片样例图", "itemGuide": "", "itemStandard": "", "qualificationType": 1, "outPutMessages": [ { "itemId": 6165, "outPutId": 12886, "outPutName": "图片01", "outPutType": 13, "isNecessary": 0, "collectDatas": [ { "outputId": 12886, "itemId": 6165, "taskId": 203742, "content": "38330", "contentType": 13, "identifies": [], }, { "outputId": 12886, "itemId": 6165, "taskId": 203742, "content": "38331", "contentType": 13, "identifies": [], }, { "outputId": 12886, "itemId": 6165, "taskId": 203742, "content": "38332", "contentType": 13, "identifies": [], }, { "outputId": 12886, "itemId": 6165, "taskId": 203742, "content": "38333", "contentType": 13, "identifies": [], }, { "outputId": 12886, "itemId": 6165, "taskId": 203742, "content": "38335", "contentType": 13, "identifies": [], }, { "outputId": 12886, "itemId": 6165, "taskId": 203742, "content": "38334", "contentType": 13, "identifies": [], }, { "outputId": 12886, "itemId": 6165, "taskId": 203742, "content": "38336", "contentType": 13, "identifies": [], }, { "outputId": 12886, "itemId": 6165, "taskId": 203742, "content": "38337", "contentType": 13, "identifies": [], }, { "outputId": 12886, "itemId": 6165, "taskId": 203742, "content": "38338", "contentType": 13, "identifies": [], }, ], }, { "itemId": 6165, "outPutId": 12887, "outPutName": "图片03", "outPutType": 13, "isNecessary": 0, "collectDatas": [ { "outputId": 12887, "itemId": 6165, "taskId": 203742, "content": "38349", "contentType": 13, "identifies": [], } ], }, { "itemId": 6165, "outPutId": 12888, "outPutName": "图片02", "outPutType": 13, "isNecessary": 0, "collectDatas": [ { "outputId": 12888, "itemId": 6165, "taskId": 203742, "content": "38350", "contentType": 13, "identifies": [], } ], }, { "itemId": 6165, "outPutId": 12889, "outPutName": "文本", "outPutType": 2, "isNecessary": 0, "collectDatas": [ { "outputId": 12889, "itemId": 6165, "taskId": 203742, "content": "验证文档生成", "contentType": 2, "identifies": [], } ], }, { "itemId": 6165, "outPutId": 12890, "outPutName": "整数", "outPutType": 5, "isNecessary": 0, "collectDatas": [ { "outputId": 12890, "itemId": 6165, "taskId": 203742, "content": "55", "contentType": 5, "identifies": [], } ], }, { "itemId": 6165, "outPutId": 12891, "outPutName": "小数", "outPutType": 6, "isNecessary": 0, "collectDatas": [ { "outputId": 12891, "itemId": 6165, "taskId": 203742, "content": "6.789", "contentType": 6, "identifies": [], } ], }, ], }, { "itemId": 6166, "kcpId": 4243, "itemName": "所有输出项", "itemGuide": "", "itemStandard": "", "qualificationType": 1, "outPutMessages": [ { "itemId": 6166, "outPutId": 12892, "outPutName": "图片", "outPutType": 13, "isNecessary": 0, "collectDatas": [ { "outputId": 12892, "itemId": 6166, "taskId": 203742, "content": "38353", "contentType": 13, "identifies": [], } ], }, { "itemId": 6166, "outPutId": 12893, "outPutName": "视频", "outPutType": 14, "isNecessary": 0, "collectDatas": [ { "outputId": 12893, "itemId": 6166, "taskId": 203742, "content": "38355", "contentType": 3, "identifies": [], } ], }, { "itemId": 6166, "outPutId": 12894, "outPutName": "图片/视频", "outPutType": 3, "isNecessary": 0, "collectDatas": [ { "outputId": 12894, "itemId": 6166, "taskId": 203742, "content": "38358", "contentType": 13, "identifies": [], }, { "outputId": 12894, "itemId": 6166, "taskId": 203742, "content": "38357", "contentType": 3, "identifies": [], }, ], }, { "itemId": 6166, "outPutId": 12895, "outPutName": "文本-含有默认必填", "outPutType": 2, "isNecessary": 1, "collectDatas": [ { "outputId": 12895, "itemId": 6166, "taskId": 203742, "content": "含有默认值-生0813-xiaoXX位置0813-xiaoXX位置0813-xiaoXX位置0813-xiaoXX位置成文档", "contentType": 2, "identifies": [], } ], }, { "itemId": 6166, "outPutId": 12896, "outPutName": "整数", "outPutType": 5, "isNecessary": 0, "collectDatas": [ { "outputId": 12896, "itemId": 6166, "taskId": 203742, "content": "888", "contentType": 5, "identifies": [], } ], }, { "itemId": 6166, "outPutId": 12897, "outPutName": "小数", "outPutType": 6, "isNecessary": 0, "collectDatas": [ { "outputId": 12897, "itemId": 6166, "taskId": 203742, "content": "5.55", "contentType": 6, "identifies": [], } ], }, { "itemId": 6166, "outPutId": 12898, "outPutName": "枚举", "outPutType": 1, "isNecessary": 0, "collectDatas": [ { "outputId": 12898, "itemId": 6166, "taskId": 203742, "content": "789", "contentType": 1, "identifies": [], } ], }, { "itemId": 6166, "outPutId": 12899, "outPutName": "多枚举", "outPutType": 4, "isNecessary": 0, "collectDatas": [ { "outputId": 12899, "itemId": 6166, "taskId": 203742, "content": "123;PPP", "contentType": 4, "identifies": [], } ], }, { "itemId": 6166, "outPutId": 12900, "outPutName": "GPS", "outPutType": 11, "isNecessary": 0, "collectDatas": [ { "outputId": 12900, "itemId": 6166, "taskId": 203742, "content": "174.2359685456526,11.2256965546", "contentType": 11, "identifies": [], } ], }, { "itemId": 6166, "outPutId": 12901, "outPutName": "条码", "outPutType": 9, "isNecessary": 0, "collectDatas": [ { "outputId": 12901, "itemId": 6166, "taskId": 203742, "content": "2020011509", "contentType": 9, "identifies": [], } ], }, { "itemId": 6166, "outPutId": 12902, "outPutName": "条码_photo", "outPutType": 13, "isNecessary": 0, "collectDatas": [ { "outputId": 12902, "itemId": 6166, "taskId": 203742, "content": "38360", "contentType": 13, "identifies": [], } ], }, { "itemId": 6166, "outPutId": 12903, "outPutName": "日期", "outPutType": 7, "isNecessary": 0, "collectDatas": [ { "outputId": 12903, "itemId": 6166, "taskId": 203742, "content": "2020-08-28", "contentType": 7, "identifies": [], } ], }, { "itemId": 6166, "outPutId": 12904, "outPutName": "文件", "outPutType": 16, "isNecessary": 0, "collectDatas": [ { "outputId": 12904, "itemId": 6166, "taskId": 203742, "content": "38361", "contentType": 16, "identifies": [], } ], }, { "itemId": 6166, "outPutId": 12905, "outPutName": "时间", "outPutType": 15, "isNecessary": 0, "collectDatas": [ { "outputId": 12905, "itemId": 6166, "taskId": 203742, "content": "2020-08-26 16:35:25", "contentType": 15, "identifies": [], } ], }, ], }, ], }, { "kcpId": 4244, "kcpName": "验证 kcp2", "templateId": 4148, "items": [ { "itemId": 6167, "kcpId": 4244, "itemName": "含有智能对象-荧光服人,安全帽", "itemGuide": "", "itemStandard": "", "qualificationType": 1, "outPutMessages": [ { "itemId": 6167, "outPutId": 12906, "outPutName": "图片01", "outPutType": 13, "isNecessary": 0, "collectDatas": [ { "outputId": 12906, "itemId": 6167, "taskId": 203742, "content": "38362", "contentType": 13, "identifies": [], } ], }, { "itemId": 6167, "outPutId": 12907, "outPutName": "图片02", "outPutType": 13, "isNecessary": 0, "collectDatas": [ { "outputId": 12907, "itemId": 6167, "taskId": 203742, "content": "38363", "contentType": 13, "identifies": [], } ], }, ], }, { "itemId": 6168, "kcpId": 4244, "itemName": "作业人员资质,电工+塔工", "itemGuide": "", "itemStandard": "", "qualificationType": 1, "outPutMessages": [ { "itemId": 6168, "outPutId": 12908, "outPutName": "要求的资质", "outPutType": 2, "isNecessary": 0, "collectDatas": [ { "outputId": 12908, "itemId": 6168, "taskId": 203742, "content": "塔工证;电工证", "contentType": 2, "identifies": [], } ], }, { "itemId": 6168, "outPutId": 12909, "outPutName": "采集的账号和资质", "outPutType": 2, "isNecessary": 0, "collectDatas": [], }, { "itemId": 6168, "outPutId": 12910, "outPutName": "资质校验结果", "outPutType": 2, "isNecessary": 0, "collectDatas": [ { "outputId": 12910, "itemId": 6168, "taskId": 203742, "content": "N(塔工证;电工证)", "contentType": 2, "identifies": [], } ], }, { "itemId": 6168, "outPutId": 12911, "outPutName": "文本", "outPutType": 2, "isNecessary": 0, "collectDatas": [ { "outputId": 12911, "itemId": 6168, "taskId": 203742, "content": "手机端采集", "contentType": 2, "identifies": [], } ], }, ], }, ], }, { "kcpId": 4245, "kcpName": "验证kcp3", "templateId": 4148, "items": [ { "itemId": 6169, "kcpId": 4245, "itemName": "验证含有必填非必填", "itemGuide": "", "itemStandard": "", "qualificationType": 1, "outPutMessages": [ { "itemId": 6169, "outPutId": 12912, "outPutName": "日期-必填", "outPutType": 7, "isNecessary": 1, "collectDatas": [ { "outputId": 12912, "itemId": 6169, "taskId": 203742, "content": "2020-08-26", "contentType": 7, "identifies": [], } ], }, { "itemId": 6169, "outPutId": 12913, "outPutName": "文本-必填", "outPutType": 2, "isNecessary": 1, "collectDatas": [ { "outputId": 12913, "itemId": 6169, "taskId": 203742, "content": "文本-*必填报告生成", "contentType": 2, "identifies": [], } ], }, { "itemId": 6169, "outPutId": 12914, "outPutName": "图片-非", "outPutType": 13, "isNecessary": 0, "collectDatas": [ { "outputId": 12914, "itemId": 6169, "taskId": 203742, "content": "38364", "contentType": 13, "identifies": [], }, { "outputId": 12914, "itemId": 6169, "taskId": 203742, "content": "38366", "contentType": 13, "identifies": [], }, { "outputId": 12914, "itemId": 6169, "taskId": 203742, "content": "38365", "contentType": 13, "identifies": [], }, { "outputId": 12914, "itemId": 6169, "taskId": 203742, "content": "38368", "contentType": 13, "identifies": [], }, { "outputId": 12914, "itemId": 6169, "taskId": 203742, "content": "38369", "contentType": 13, "identifies": [], }, { "outputId": 12914, "itemId": 6169, "taskId": 203742, "content": "38367", "contentType": 13, "identifies": [], }, { "outputId": 12914, "itemId": 6169, "taskId": 203742, "content": "38372", "contentType": 13, "identifies": [], }, { "outputId": 12914, "itemId": 6169, "taskId": 203742, "content": "38373", "contentType": 13, "identifies": [], }, { "outputId": 12914, "itemId": 6169, "taskId": 203742, "content": "38371", "contentType": 13, "identifies": [], }, { "outputId": 12914, "itemId": 6169, "taskId": 203742, "content": "38374", "contentType": 13, "identifies": [], }, { "outputId": 12914, "itemId": 6169, "taskId": 203742, "content": "38370", "contentType": 13, "identifies": [], }, { "outputId": 12914, "itemId": 6169, "taskId": 203742, "content": "38375", "contentType": 13, "identifies": [], }, { "outputId": 12914, "itemId": 6169, "taskId": 203742, "content": "38376", "contentType": 13, "identifies": [], }, { "outputId": 12914, "itemId": 6169, "taskId": 203742, "content": "38377", "contentType": 13, "identifies": [], }, ], }, ], } ], }, ], } ], "pos": 0, "total_count": 1, }, }
状态码
状态码请参见状态码。
错误码
错误码请参见错误码。