根据人员分组编码查询(API名称:personGroup/findByPersonGroupCode)
功能介绍
根据人员分组编码查询。
相关接口
| 接口名称 | 调用说明 |
|---|---|
| 调用该接口获取到Token,再调用其他接口时,需要在请求消息头中添加“Authorization”,其值即为Token。 |
URL
| 请求方式 | HTTPS地址 | 服务架构 | 消息体类型 |
|---|---|---|---|
| POST | https://isdp+域名/openapi/v1/personGroup/findByPersonGroupCode | OpenAPI | application/json |
请求头
| KEY | VALUE | 是否必填 | 描述 |
|---|---|---|---|
| Content-Type | application/json | 是 | 无 |
| Authorization | bearer ${access_token} | 是 | bearer +“ ”+5.2.1中获取的access_token的值 |
请求参数
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| personGroupCode | String | 是 | 人员分组编码 |
响应参数
| 参数 | 类型 | 描述 |
|---|---|---|
| personGroupId | Long | 人员分组id |
| personGroupCode | String | 人员分组编码 |
| personGroupName | String | 人员分组名称 |
| personGroupType | String | 人员分组类型 |
| personGroupLevel | Integer | 层级 |
| description | String | 描述 |
| tenantId | Long | 租户id |
| deleteFlag | Integer | 是否删除(0-未删除,1-已删除) |
| createdBy | Long | 创建人 |
| creationDate | datetime | 创建时间 |
| lastUpdatedBy | Long | 最后更新人 |
| lastUpdateDate | datetime | 最后更新时间 |
| appName | String | 模块名称 |
| entityName | String | 实体名称 |
| parentGroupId | Long | 父级人员分组id |
| operationQualIds | String | 资质id列表(多个逗号分隔) |
| leaderId | Long | 组长id |
| orgId | Long | 相关联的组织单元id |
| extInfo | String | 扩展信息 |
| leaderInfo | Map<String,Object> | 组长信息 |
leaderInfo:
| 参数 | 类型 | 描述 |
|---|---|---|
| personId | Long | 人员id |
| personGroupId | Long | 人员分组id |
| personCode | String | 人员编码 |
| firstName | String | 姓 |
| lastName | String | 名 |
| personName | String | 人员姓名 |
| qualificationCode | String | 作业资质id(多个用英文逗号分隔) |
| personType | String | 人员类型 |
| tenantId | Long | 租户id |
| description | String | 描述 |
| | String | 邮箱 |
| phone | String | 电话号码 |
| orgPath | String | 组织路径 |
| adminOrgId | String | 所属行政组织 |
| customerId | Long | 所属客户 |
| supplierId | Long | 所属分包商 |
| openAccount | Integer | 是否开户 |
| acount | String | 账户 |
| headFileId | Long | 头像 |
| faceFileId | Long | 人脸信息 |
| status | Integer | 状态 |
| userId | Long | 用户id |
| integrationAccount | String | 集成账户 |
| deleteFlag | Integer | 是否删除(0-未删除) |
| createdBy | Long | 创建人 |
| creationDate | datetime | 创建时间 |
| lastUpdatedBy | Long | 最后更新人 |
| lastUpdateDate | datetime | 最后更新时间 |
| appName | String | 模块名称 |
| entityName | String | 实体名称 |
| personStatus | String | 人员状态 |
| profilePictureStatus | String | 证件照状态 |
| profilePictureId | String | 证件照id |
| udfExtend1 | String | 扩展字段1 |
| udfExtend2 | String | 扩展字段2 |
| udfExtend3 | String | 扩展字段3 |
| udfExtend4 | String | 扩展字段4 |
| udfExtend5 | datetime | 扩展字段5 |
| udfExtend6 | datetime | 扩展字段6 |
| udfExtend7 | String | 扩展字段7 |
| udfExtend8 | String | 扩展字段8 |
| udfExtend9 | String | 扩展字段9 |
| udfExtend10 | String | 扩展字段10 |
| isSmartDevice | Interger | 是否是智能设备 |
| registerFace | Integer | 0-未注册,1-已注册 |
| phoneHash | String | 电话号码加密结果 |
| emailHash | String | 邮件加密结果 |
| blackList | Integer | 黑名单:0-否,1-是 |
| reason | String | 原因 |
| electronicSignatureId | Long | 电子签名id |
| language | String | 人员语言 |
| countryCode | String | 国家码 |
| certificateType | String | 证件类型 |
| certificateNo | String | 证件号码 |
| certificateNoHash | String | 证件号码加密结果 |
请求示例
{
"personGroupCode": "vehicleTest1"
} 响应示例
{
"entityName": "PersonGroup",
"appName": "pub-server",
"lastUpdateDate": "2023-12-27T17:43:23.000+08:00",
"lastUpdatedBy": 5002951,
"creationDate": "2023-12-18T15:52:38.000+08:00",
"createdBy": 5002951,
"deleteFlag": 0,
"tenantId": 1,
"description": "description",
"personGroupType": null,
"personGroupName": "测试车厢车型更新",
"personGroupCode": "vehicleTest1",
"personGroupId": 5002290,
"parentGroupId": 5001910,
"level": 2,
"operationQualIds": "61",
"leaderId": 5000526,
"orgId": null,
"extInfo": "[{\"vehicleType\":\"CRH380A\",\"vehiclePos\":01},{\"vehicleType\":\"CRH380A\",\"vehiclePos\":12}]",
"leaderInfo": {
"status": 0,
"entityName": "person",
"appName": "pub-server",
"lastUpdateDate": "2023-03-31T14:45:07.000+08:00",
"lastUpdatedBy": -1,
"creationDate": "2023-03-01T18:11:56.000+08:00",
"createdBy": -1,
"deleteFlag": 0,
"integrationAccount": "",
"userId": 5001283,
"account": "",
"adminOrgId": -8889,
"phone": "189*******4",
"email": "xxxxxxxx@qq.com",
"tenantId": 1,
"personType": "Other",
"qualificationCode": null,
"personName": "test03014",
"lastName": null,
"firstName": null,
"personCode": "test03014",
"personId": 5000526,
"personStatus": "OpeningAccount",
"profilePictureStatus": "CollectionFailed",
"profilePictureId": "",
"udfExtend1": null,
"udfExtend2": "ORG_UNIT",
"udfExtend3": null,
"udfExtend4": null,
"phoneHash": "c22dffe378ddd6577bb1acdf259129ae52c507***************eedcb77b5c37fff30e586624a4cffd326ba764fcbf8948cd04f35abea4bb",
"emailHash": null,
"isSmartDevice": "N",
"udfExtend7": "",
"udfExtend8": "",
"udfExtend9": "",
"udfExtend10": "",
"blackList": 0,
"reason": null,
"orgPath": "-1.-8889",
"language": null,
"countryCode": null,
"certificateType": null,
"certificateNo": null,
"certificateNoHash": null
}
}