From 7f419fb8ad36a5bc4391f3abfa396b9cd5bb211d Mon Sep 17 00:00:00 2001 From: maruizhi <3088243241@qq.com> Date: Sun, 20 Sep 2026 14:31:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E7=B1=BB=E5=90=8D=E4=BF=AE=E6=94=B9=E4=BB=A5=E5=8F=8A=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=90=8D=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PythonProject/dao/student_dao.py | 2 ++ .../model/{Student_model.py => student_model.py} | 10 +++++++--- .../model/{Teacher_model.py => teacher_model.py} | 0 需求文档.md | 5 +++++ 4 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 PythonProject/dao/student_dao.py rename PythonProject/model/{Student_model.py => student_model.py} (90%) rename PythonProject/model/{Teacher_model.py => teacher_model.py} (100%) diff --git a/PythonProject/dao/student_dao.py b/PythonProject/dao/student_dao.py new file mode 100644 index 0000000..db973ca --- /dev/null +++ b/PythonProject/dao/student_dao.py @@ -0,0 +1,2 @@ +from model import student_model + diff --git a/PythonProject/model/Student_model.py b/PythonProject/model/student_model.py similarity index 90% rename from PythonProject/model/Student_model.py rename to PythonProject/model/student_model.py index bf136f4..c33c024 100644 --- a/PythonProject/model/Student_model.py +++ b/PythonProject/model/student_model.py @@ -2,7 +2,8 @@ from sqlalchemy import DATETIME,Column, Integer, String, Date,ForeignKey from sqlalchemy.orm import declarative_base import datetime Base = declarative_base() -class Student(Base): + +class Student_Model(Base): __tablename__ = 'wl_student' stu_id = Column(Integer , primary_key=True @@ -19,7 +20,7 @@ class Student(Base): birthday=Column(Date,comment='生日') school=Column(String(100),comment='毕业学校') major=Column(String(50),comment='专业') - degree=Column(String(50),comment='学位') + degree=Column(String(50),comment='学历') admission_date=Column(Date,comment='入学日期') graduation_date=Column(Date,comment='毕业日期') create_date=Column(DATETIME @@ -27,4 +28,7 @@ class Student(Base): update_date=Column(DATETIME ,default=datetime.now ,onupdate=datetime.now) - progress=Column(Integer,default=0) \ No newline at end of file + progress=Column(Integer,default=0) + + + diff --git a/PythonProject/model/Teacher_model.py b/PythonProject/model/teacher_model.py similarity index 100% rename from PythonProject/model/Teacher_model.py rename to PythonProject/model/teacher_model.py diff --git a/需求文档.md b/需求文档.md index 6c553ca..a472c4d 100644 --- a/需求文档.md +++ b/需求文档.md @@ -23,26 +23,31 @@ dao层(每一个功能就是一个函数,判断能否功能复用) 实现增加学生的功能 **xxx 做成中** 实现查询学生的功能:需要能进行多条件查询 **xxx 做成中** 实现更新学生信息的功能 **xxx 做成中** +实现删除学生信息的功能 (更新删除状态这个列,即软删除)**xxx 做成中** 成绩模块 实现增加学生成绩的功能 **xxx 做成中** 实现查询成绩的功能 **xxx 做成中** 实现更新成绩的功能 **xxx 做成中** +实现删除成绩的功能 **xxx 做成中** 就业模块 实现增加学生就业信息的功能 **xxx 做成中** 实现查询学生就业信息的功能 **xxx 做成中** 实现修改学生就业信息的功能 **xxx 做成中** +实现删除学生就业信息的功能 **xxx 做成中** 班级模块 实现增加班级的功能 **xxx 做成中** 实现查询班级的功能 **xxx 做成中** 实现更新班级的功能 **xxx 做成中** +实现删除班级的功能 **xxx 做成中** 老师模块 实现增加老师的功能 **xxx 做成中** 实现查询老师的功能 **xxx 做成中** 实现更新老师的功能 **xxx 做成中** +实现删除老师的功能 **xxx 做成中** 统计分析模块 实现根据年龄查询学生信息的功能 **xxx 做成中**