🎉 开放平台文档站换新颜。 欢迎填问卷给我们建议,意见,反馈,夸夸 →
Skip to Content
API文档教职工数据教职工基础数据教职工基本信息

教职工基本信息

最近更新时间: 2025年05月08日 02时16分07秒
数据中心
批量

描述

单条或批量获取教职工基本信息。

支持的模式

客户端模式

请求方法

GET

请求地址

https://api.tongji.edu.cn/v2/dc/user/teacher_infos

数据来源

人事系统,人员状态系统

请求参数

参数名是否必填备注
userId工号
statusCode人员身份认证状态,0代表有效、1代表失效、-1代表全部 不传参数默认为0
deptCode部门/学院代码 不传代表全部获取
currentStatusCode当前状态 不传代表全部获取
userTypeCode教职工人员类别代码 不传代表全部获取
sinceUserId游标的起始位置,请把响应中的同字段传入,获取下一页,循环往复获取全量数据
sinceUpdateTime更新时间,获取该时间点之后信息有更改的数据,此字段格式支持YYYY-MM-DD HH:mm:ss 和 unix时间戳

返回参数

参数名类型备注码表
userIdstring学工号
namestring姓名
sexCodestring性别
sexNamestring性别名称
deptCodestring部门/学院代码
deptNamestring部门/学院名称
secondDeptCodestring二级单位
secondDeptNamestring二级单位名称
currentStatusCodestring当前状态current_status
currentStatusNamestring当前状态名称
userTypeCodestring教职工人员类别代码user_types
userTypeNamestring教职工人员类别名称
sendUserTypeCodestring派遣人员类别代码send_user_types
sendUserTypeNamestring派遣人员类别代码名称
fundSourceCodestring经费来源fund_source_code
fundSourceNamestring经费来源名称
jobTypeCodestring岗位类别代码
jobTypeNamestring岗位类别名称
jobOfferDatestring岗位聘任年月
joinDatestring进校年月(教职工入编时间)
inschoolDatestring来校年月(教职工入职时间)
quitDatestring离职时间
expRetireDatestring预计离退休日期
startTimestring合同起始时间
endTimestring合同终止时间
statusCodestring人员身份认证状态
statusNamestring人员身份认证状态名称
highestEduCodestring最高学历代码
highestEduNamestring最高学历名称
highestDegreeCodestring最高学位代码
highestDegreeNamestring最高学位名称
researchDirectionstring研究方向
isFullResearchstring是否专职科研,1-是,0-否
isReportablestring是否可上报,1-是,2-否,标为1的是完全学校经费人员,属于人事每年上报编办的人员范围
graduationSchoolstring毕业学校
graduationDatestring毕业年月
majorstring所学专业
degreeAwardedDatestring授学位年月
updateTimedate更新时间

解释说明

此接口可入参学号单条获取教职工基本信息。如需不传参批量获取数据,请看以下说明: 初始化获取全量数据: 首次请求无需传参,每次固定返回1000条数据,获取后续数据在请求上附上上一次的sinceUserId,当sinceUserId为空或者返回条数为0时,可以停止循环,已经获取全量数据。 获取增量数据:入参为sinceUpdateTime,获取该时间点之后有更改的数据。

请求示例

curl -X GET \ 'https://api.tongji.edu.cn/v2/dc/user/teacher_infos?userId=&statusCode=&deptCode=&currentStatusCode=&userTypeCode=&sinceUserId=&sinceUpdateTime='

返回示例

{ "code": "A00000", "data": { "count": 2, "sinceUserId": "2******8", "userInfos": [ { "createTime": "2022-12-05 00:00:00", "currentStatusCode": "18", "currentStatusName": "待审批", "degreeAwardedDate": "20**-06", "deptCode": "*****3", "deptName": "***处", "endTime": " ", "expRetireDate": " ", "fundSourceCode": " ", "fundSourceName": null, "graduationDate": "20**-06", "graduationSchool": "华****大学", "inschoolDate": " ", "isFullResearch": "1", "isReportable": " ", "jobOfferDate": " ", "jobTypeCode": "21", "jobTypeName": "专业技术类教辅系列", "joinDate": " ", "major": "**学", "name": "**凡", "quitDate": " ", "secondDeptCode": " ", "secondDeptName": null, "sendUserTypeCode": "3", "sendUserTypeName": "双轨制", "sexCode": "1", "sexName": "男", "startTime": " ", "statusCode": "0", "statusName": "有效", "updateTime": "20**-12-05 00:00:00", "userId": "*****8", "userTypeCode": "1", "userTypeName": "派遣人员", "highestDegreeCode": "3**", "highestDegreeName": "工学**学位", "highestEduCode": "1*", "highestEduName": "**研究生毕业", "researchDirection": " " }, { "createTime": "2022-12-05 00:00:00", "currentStatusCode": "11", "currentStatusName": "在职", "degreeAwardedDate": "20**-06", "deptCode": "*****3", "deptName": "******学院", "endTime": " ", "expRetireDate": " ", "fundSourceCode": " ", "fundSourceName": null, "graduationDate": "20**-06", "graduationSchool": "**大学", "inschoolDate": "20**-12-05", "isFullResearch": "1", "isReportable": "1", "jobOfferDate": " ", "jobTypeCode": " ", "jobTypeName": null, "joinDate": " ", "major": "**科学", "name": "张**", "quitDate": " ", "secondDeptCode": " ", "secondDeptName": null, "sendUserTypeCode": " ", "sendUserTypeName": null, "sexCode": "1", "sexName": "男", "startTime": " ", "statusCode": "0", "statusName": "有效", "updateTime": "20**-12-05 00:00:00", "userId": "2*****2", "userTypeCode": "6", "userTypeName": "博士后人员", "highestDegreeCode": "3**", "highestDegreeName": "工学**学位", "highestEduCode": "1*", "highestEduName": "**研究生毕业", "researchDirection": " " } ] }, "msg": "成功" }