学生基本信息
最近更新时间: 2025年05月08日 02时17分13秒
数据中心
批量
描述
单条或批量获取学生基本信息。
支持的模式
客户端模式
请求方法
GET
请求地址
https://api.tongji.edu.cn/v2/dc/user/student_infos
数据来源
教务系统,人员状态系统,学工系统
请求参数
参数名 | 是否必填 | 备注 |
---|---|---|
userId | 否 | 学工号 |
sinceTime | 否 | 日期 |
statusCode | 否 | 人员身份认证状态,0代表有效、1代表失效、-1代表全部 不传参数默认为0 |
deptCode | 否 | 部门/学院代码 不传代表全部获取 |
secondDeptCode | 否 | 培养专业 不传代表全部获取 |
leaveSchoolCode | 否 | 在校状态,针对研究生 不传代表全部获取 |
isMembershipCode | 否 | 是否在籍,针对本科生,1-是,0-否 不传代表全部获取 |
registrationStatusCode | 否 | 学籍状态,针对本科生 不传代表全部获取 |
userTypeCode | 否 | 人员类型代码 2-本科生、3-硕士研究生、4-博士研究生 不传代表全部获取 |
trainingCategoryCode | 否 | 培养类别代码 不传代表全部获取 |
currentGrade | 否 | 当前年级 不传代表全部获取 |
sinceUserId | 否 | 游标的起始位置,请把响应中的同字段传入,获取下一页,循环往复获取全量数据 |
sinceUpdateTime | 否 | 更新时间,获取该时间点之后信息有更改的数据,此字段格式支持YYYY-MM-DD HH:mm:ss 和 unix时间戳 |
返回参数
参数名 | 类型 | 备注 | 码表 |
---|---|---|---|
userId | string | 学工号 | |
name | string | 姓名 | |
sexCode | string | 性别 | |
sexName | string | 性别名称 | |
deptCode | string | 部门/学院代码 | |
deptName | string | 部门/学院名称 | |
secondDeptCode | string | 培养专业 | second_dept_code |
secondDeptName | string | 培养专业名称 | |
schoolCode | string | 学堂id | |
schoolName | string | 学堂名称 | |
politicalStatusCode | string | 政治面貌 | |
politicalStatusName | string | 政治面貌名称 | |
campusCode | string | 校区 | |
campusName | string | 校区名称 | |
currentGrade | string | 当前年级 | |
trainingLevelCode | string | 培养层次 | training_level_code |
trainingLevelName | string | 培养层次名称 | |
leaveSchoolCode | string | 在校状态,针对研究生 | leave_school_code |
leaveSchoolName | string | 在校状态名,针对研究生称 | |
isMembershipCode | string | 是否在籍,针对本科生,1-是,0-否 | |
isMembershipName | string | 是否在籍名称,针对本科生, | |
expGraduationDate | string | 预计毕业时间 | |
enrolDate | TIMESTAMP | 入学时间 | |
offSchool | string | 离校时间 | |
teacherId | string | 导师工号 | |
viceTeacherId | string | 副导师工号 | |
isIncumbencyCode | string | 是否在职,针对研究生,本科生此字段为空,1-是,0-否 | |
isIncumbencyName | string | 是否在职名称,针对研究生,本科生此字段为空 | |
userTypeCode | string | 人员类型代码 | types |
userTypeName | string | 人员类型名称 | |
registrationStatusCode | string | 学籍状态,针对本科生 | registration_status_code |
registrationStatusName | string | 学籍状态名称,针对本科生 | |
statusCode | string | 人员身份认证状态,0代表有效、1代表失效 | |
statusName | string | 人员身份认证状态名称 | |
trainingCategoryCode | string | 培养类别 | training_category_code |
trainingCategoryName | string | 培养类别名称 | |
lengthSchooling | string | 学制 | |
isOverseasCode | string | 是否留学生代码 | |
isOverseasName | string | 是否留学生 | |
updateTime | date | 更新时间 | |
managementCollege2Code | string | 管理学院2代码 | |
managementCollege2Name | string | 管理学院2 |
解释说明
此接口可入参学号单条获取学生基本信息。如需不传参批量获取数据,请看以下说明: 初始化获取全量数据: 首次请求无需传参,每次固定返回1000条数据,获取后续数据在请求上附上上一次的sinceUserId,当sinceUserId为空或者返回条数为0时,可以停止循环,已经获取全量数据。 获取增量数据:入参为sinceUpdateTime,获取该时间点之后有更改的数据。
请求示例
curl -X GET \
'https://api.tongji.edu.cn/v2/dc/user/student_infos' \
-H 'userId: ' \
-H 'sinceTime: ' \
-H 'statusCode: ' \
-H 'deptCode: ' \
-H 'secondDeptCode: ' \
-H 'leaveSchoolCode: ' \
-H 'isMembershipCode: ' \
-H 'registrationStatusCode: ' \
-H 'userTypeCode: ' \
-H 'trainingCategoryCode: ' \
-H 'currentGrade: ' \
-H 'sinceUserId: ' \
-H 'sinceUpdateTime: '
返回示例
{
"code": "A00000",
"data": {
"count": 27,
"sinceUserId": "2******4",
"userInfos": [
{
"campusCode": " ",
"campusName": null,
"createTime": "20**-08-09 00:00:00",
"currentGrade": 2022,
"deptCode": "0****7",
"deptName": "**院",
"expGraduationDate": "0001-01-01 00:00:00",
"isIncumbencyCode": " ",
"isIncumbencyName": null,
"isMembershipCode": "1",
"isMembershipName": "是",
"leaveSchoolCode": "1",
"leaveSchoolName": "校内在读",
"isOverseasCode": "0",
"isOverseasName": "否",
"name": "**悦",
"offSchool": " ",
"politicalStatusCode": "13",
"politicalStatusName": "群众",
"registrationStatusCode": "20",
"registrationStatusName": "在校",
"schoolCode": "54",
"schoolName": "济美",
"secondDeptCode": "***4",
"secondDeptName": "***类",
"sexCode": "2",
"sexName": "女",
"statusCode": "0",
"statusName": "有效",
"teacherId": "1****7",
"trainingCategoryCode": "3",
"trainingCategoryName": "学历学位生",
"trainingLevelCode": "1",
"trainingLevelName": "本科",
"updateTime": "2022-12-07 00:00:00",
"userId": "2******4",
"userTypeCode": "2",
"userTypeName": "本科生",
"viceTeacherId": " ",
"enrolDate": " ",
"lengthSchooling": "4"
},
{
"campusCode": " ",
"campusName": null,
"createTime": "2022-08-06 00:00:00",
"currentGrade": 2022,
"deptCode": "0*****7",
"deptName": "**院",
"expGraduationDate": "0001-01-01 00:00:00",
"isIncumbencyCode": " ",
"isIncumbencyName": null,
"isMembershipCode": "1",
"isMembershipName": "是",
"leaveSchoolCode": "1",
"leaveSchoolName": "校内在读",
"isOverseasCode": "0",
"isOverseasName": "否",
"name": "**轩",
"offSchool": " ",
"politicalStatusCode": "13",
"politicalStatusName": "群众",
"registrationStatusCode": "20",
"registrationStatusName": "在校",
"schoolCode": "54",
"schoolName": "济美",
"secondDeptCode": "3****7",
"secondDeptName": "工******",
"sexCode": "1",
"sexName": "男",
"statusCode": "0",
"statusName": "有效",
"teacherId": "0****5",
"trainingCategoryCode": "3",
"trainingCategoryName": "学历学位生",
"trainingLevelCode": "1",
"trainingLevelName": "本科",
"updateTime": "2022-12-07 00:00:00",
"userId": "2******2",
"userTypeCode": "2",
"userTypeName": "本科生",
"viceTeacherId": " ",
"enrolDate": " ",
"lengthSchooling": "4"
}
]
},
"msg": "成功"
}