-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathimport_data_mapping.py
More file actions
69 lines (68 loc) · 1.99 KB
/
import_data_mapping.py
File metadata and controls
69 lines (68 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
on_campus_students_mapping = {
'学生ID': 'student_id',
'姓名': 'username',
'英语姓名': 'english_name',
'性别': 'gender',
'类别': 'category',
'国籍': 'nationality',
'入学时间': 'admission_time',
'导师姓名': 'tutor_name',
'副导师姓名': 'co_tutor_name',
'导师工号': 'tutor_id',
'副导师工号': 'co_tutor_id',
'出生日期': 'birth_date',
'邮箱': 'email',
'手机': 'phone',
'备注': 'remarks'
}
graduated_students_mapping = {
'学生ID': 'student_id',
'姓名': 'username',
'英语姓名': 'english_name',
'性别': 'gender',
'类别': 'category',
'国籍': 'nationality',
'入学时间': 'admission_time',
'出生日期': 'birth_date',
'邮箱': 'email',
'手机': 'phone',
'备注': 'remarks',
'毕业时间': 'graduation_time',
'首次就业单位': 'first_employment_unit',
'导师姓名': 'tutor_name',
'副导师姓名': 'co_tutor_name',
'导师工号': 'tutor_id',
'副导师工号': 'co_tutor_id',
}
# 映射字典 - 全职教师
full_time_mapping = {
'工号': 'teacher_id',
'学历': 'education',
'姓名': 'username',
'英文名': 'english_name',
'性别': 'gender',
'职称': 'title',
'导师资格': 'qualification',
'研究所职务': 'duty',
'社会兼职': 'social_part_time',
'学院行政职务': 'administrative_duty',
'办公电话': 'office_phone',
'出生日期': 'birth_date',
'电子邮件地址': 'email',
'手机': 'phone',
'备注信息': 'remarks',
}
# 映射字典 - 兼职教师
part_time_mapping = {
'工号': 'teacher_id',
'学历': 'education',
'姓名': 'username',
'英文名': 'english_name',
'性别': 'gender',
'职称': 'title',
'单位': 'work_unit', # 注意:兼职教师有工作单位字段,全职教师没有
'出生日期': 'birth_date',
'电子邮件地址': 'email',
'手机': 'phone',
'备注信息': 'remarks',
}