Skip to content

feat: add person status check command#963

Open
KeZhao783 wants to merge 3 commits intoYuanpei-Intelligence:developfrom
KeZhao783:feat-check-person-status
Open

feat: add person status check command#963
KeZhao783 wants to merge 3 commits intoYuanpei-Intelligence:developfrom
KeZhao783:feat-check-person-status

Conversation

@KeZhao783
Copy link
Contributor

新增一个 Django 管理命令 check_persons,用于自动化核对数据库中人员状态(在校/毕业)与教务处提供的 Excel 报表是否一致,并支持自动修正。

  1. 通过 Excel 中的“姓名”与“学号”列定位 NaturalPerson 实例。
  2. 将 Excel 中的文字状态(“在校”、“毕业”)映射为模型定义的 GraduateStatus 枚举值。
  3. 脚本执行完成后生成报告,统计总行数、匹配数、差异数及查无此人数,并返回异常值的 Excel 行号(Index+2)。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants