statcalc就业统计模块更新

This commit is contained in:
2026-09-22 17:02:59 +08:00
parent eb4e4c1cc0
commit 5020eeb640
3 changed files with 37 additions and 3 deletions
+4 -2
View File
@@ -96,7 +96,7 @@ def delete_stuinfo( #删除模块
raise HTTPException(status_code=500, detail='没有删除!') #失败返回错误信息
return {'code': 200, 'totals': rows, 'detail': '删除成功'} #成功返回信息
'''
@CURD.get('/Top5',summary='就业薪资Top5')
def salarytop5(db=Depends(get_db)):
q = db.query(Employments,Company.employment_company) \
@@ -129,4 +129,6 @@ def avgworktime(db=Depends(get_db)):
return {
'人数': len(q),
'平均就业时常(天)': round(avg_days, 2)
}
}
'''