前端测试通过,部分接口没有数据,运行没问题了。

This commit is contained in:
Orangeeee
2026-09-23 03:53:57 +08:00
parent 24a7da624b
commit 1ff0782399
5 changed files with 393 additions and 38 deletions
+1 -1
View File
@@ -66,7 +66,7 @@ def salarytop5(db=Depends(get_db)):
.filter(Employments.is_deleted == 0)\
.order_by(Employments.employment_salary.desc())\
.limit(5) .all()
return [{'学生姓名':i.sname,'学生班级编号':i.class_num,'就业时间':i.offer_recived_time,'公司':employment_company} for i,employment_company in q]
return [{'学生姓名':i.stuid,'学生班级编号':i.class_id,'就业时间':i.offer_recived_time,'公司':employment_company} for i,employment_company in q]
@statcalc_api.get('/statcalc/job',summary='学生就业时长')
def worktime(db=Depends(get_db)):