Compare commits

..
7 Commits
Author SHA1 Message Date
maruizhi 79da6dc3a0 Merge pull request 'Conding' (#7) from conding into master
Reviewed-on: #7
2026-09-22 20:22:40 +08:00
wolin_chenyulin001 1af01f94ee 修改小瑕疵 2026-09-22 19:51:46 +08:00
maruizhi da935f93bd Merge pull request 'Conding' (#6) from conding into master
Reviewed-on: #6
2026-09-22 12:22:56 +08:00
maruizhi 92b98226d8 Merge pull request 'Conding' (#5) from conding into master
Reviewed-on: #5
2026-09-21 11:23:21 +08:00
maruizhi e13ace8616 Merge pull request 'Conding' (#4) from conding into master
Reviewed-on: #4
2026-09-21 09:56:48 +08:00
maruizhi 46faa300a8 Merge pull request 'Conding' (#2) from conding into master
Reviewed-on: #2
2026-09-21 09:24:39 +08:00
maruizhi 26429d6b6f Merge pull request 'Conding' (#1) from conding into master
Reviewed-on: #1
2026-09-19 16:39:12 +08:00
+5 -5
View File
@@ -7,15 +7,15 @@ from typing import Optional
emp_api = APIRouter(tags=['学生就业管理模块'])
@emp_api.get('/employment/class/{class_id}',response_model=list[EmploymentResponse],summary='获取班级学生就业信息')
def get_emp_info2(class_id: Optional[int]=Path(description='班级编号')
def get_emp_info1(class_id: Optional[int]=Path(description='班级编号')
,db=Depends(get_db)):
e2 = employment_dao.get_emp_dao(class_id=class_id, db=db)
if e2:
return e2
e1 = employment_dao.get_emp_dao(class_id=class_id, db=db)
if e1:
return e1
raise HTTPException(status_code=404, detail='该班级就业信息不存在')
@emp_api.get('/employment/students/{stu_id}',response_model=list[EmploymentResponse],summary='按照学⽣编号,公司名字,⼯资范围查询学⽣就业信息')
def get_emp_info3(stu_id:int = Path(description='学生编号')
def get_emp_info2(stu_id:int = Path(description='学生编号')
,company_name: str|None = Query(None,description='公司名称')
,min_salary: float|None = Query(None,ge=0,description='最低工资')
,max_salary: float|None = Query(None,ge=0,description='最高工资')