Merge remote-tracking branch 'origin/conding' into conding

This commit is contained in:
2026-09-21 20:28:32 +08:00
3 changed files with 43 additions and 3 deletions
+8 -2
View File
@@ -1,7 +1,7 @@
from fastapi import APIRouter,Depends
from dao.statistics_dao import select_all,select_age,select_score,select_avg_score,select_salary,select_days
from dao.statistics_dao import *
from schema.student_schema import StudentResponse
from schema.statistics_schema import AllStuResponse,AvgDayResponse,AcgScoreResponse
from schema.statistics_schema import *
from util.database import get_db
StatisticsAPI = APIRouter()
@@ -35,3 +35,9 @@ def get_scores(db=Depends(get_db)):
def get_days(db=Depends(get_db)):
l = select_days(db)
return l
@StatisticsAPI.get('/emp',response_model=AllEmpResponse,tags=['统计分析模块'],summary='统计每个学生的就业时长')
def get_emp(db=Depends(get_db)):
l= select_days2(db)
return l