Skip to content

根据员工Code获取员工的任职

基本信息

中文名: 根据员工code获取员工的任职

接口名: /mozi/employee/listEmployeePositionsByEmployeeCode

所在目录: 获取通讯录用户信息

调用方式: POST(HTTPS)

请求参数

名称类型是否必填示例值描述
employeePositionStatusStringA员工在组织内任职状态条件 <br/>A - 查询有效的数据 <br/>F - 查询无效的数据 <br/>TOTAL - 查询所有的数据 (默认 )
employeePositionTypeStringEMPLOYEE_POSITION_ALL所需员工任职类型,默认是主职 ** ** <br/>EMPLOYEE_POSITION_ALL - 所有 <br/>EMPLOYEE_POSITION_MAIN - 主职EMPLOYEE_POSITION_ADJUNCT - 非主职
employeeCodeStringGE_123员工code
tenantIdLong1租户ID

返回参数

参数类型示例值说明
_RequestIdString网关请求ID
successBooleantrue网关调用是否成功
errorCodeString0网关错误码
HostIdString网关HostId
CodeString网关Code
errorMsgString网关错误信息
errorLevelString网关错误级别
MessageString网关信息
content.successBooleantrue业务调用是否成功
content.requestIdString业务请求ID
content.responseCodeString0业务响应Code
content.responseMessageString业务响应信息
content.data[]业务返回值
content.data.organizationCodeStringGO_123组织code
content.data.employeeCodeStringGE_123人员Code
content.data.mainJobBooleantrue是否员工主任职
content.data.statusStringA任职状态
content.data.gmtCreateString2021-02-08 10:57:19创建时间
content.data.govEmpPosPhoneNoString1111111办公电话
content.data.orderNumber1任职序号
content.data.orderInOrganizationNumber1组织内排序
content.data.govEmpPosAddressString东南路102号办公地址
content.data.govEmpPosJobString工程师任职
content.data.managerStringGE_xxx直属主管(返回主管的employeeCode)
content.data.empPosUnitCodeStringGO_123所在单位Code(content.data.organizationCode对应的组织类型为单位时返回,否则为空)
content.data.empPosInnerInstitutionCodeStringGO_123所在内设机构Code(content.data.organizationCode对应的组织类型为内设机构时返回,否则为空)
content.data.empPosVirtualOrganizationCodeStringGO_123所在虚拟组织Code(content.data.organizationCode对应的组织类型为虚拟组织类型时返回,否则为空)
content.data.empPosFaxNoString111111传真
content.data.empPosEmployeeRoleStringREN_YUAN_JU_SE_GAO_JI_YONG_HU人员角色
content.data.jobAttributesCodeString1任职属性Code
content.data.posJobRankCodeStringCENG_CI_GONG_JIA_JI_ZHENG_ZHI职务层次Code
content.data.visibilityIndicatorCodeStringXIAN_JI_YI_BAN_GONG_ZUO_REN_YUAN可见性标签
content.data.positionExtProperties[]任职扩展属性,自定义的拓展任职信息字段
content.data.positionExtProperties.codeStringext_EMPLOYEEPOSITION_fe789104任职扩展属性的Code
content.data.positionExtProperties.typeString3扩展属性的类型:<br/>0字符串类型<br/>1数字类型<br/>2 单选<br/>3 多选
content.data.positionExtProperties.valueList<String>[“1”]扩展属性职:<br/>字符串类型时,返回一个数值,如 [“stringValue”]<br/>数字类型,返回一个数值,如 [“numberValue”]<br/>单选,返回一个选项code,如 [“code1”]<br/>多选,返回若干个选项code,如 [“code1”,“code2”]