1
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user