This commit is contained in:
msj
2026-09-21 15:10:45 +08:00
parent 9c26b8c0f5
commit aecd0c0011
3 changed files with 52 additions and 18 deletions
+2 -9
View File
@@ -66,14 +66,7 @@ def get_student_dao(stu_id:Optional[int]
q= q.filter(Student_Model.class_id == class_id,Student_Model.delete_status == 0)
total = q.count()
r = q.offset((page - 1) * page_size).limit(page_size).all()
data = []
for i in r:
data.append({'stu_id': i.stu_id
,'stu_name': i.stu_name
,'class_id': i.class_id
,'create_date': i.create_date
,'update_date': i.update_date
})
return data, total
return r