From 50e3234793b781f469f129c31be959170b7fdf28 Mon Sep 17 00:00:00 2001 From: wolin_chenyulin001 <123@163.com> Date: Tue, 22 Sep 2026 23:17:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9put=E5=92=8Cdelete=E7=9A=84?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E5=8F=82=E6=95=B0=E4=B8=BAstu=5Fid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PythonProject/api/employment_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PythonProject/api/employment_api.py b/PythonProject/api/employment_api.py index b500a44..688d6da 100644 --- a/PythonProject/api/employment_api.py +++ b/PythonProject/api/employment_api.py @@ -15,7 +15,7 @@ def get_emp_info1(stu_id: Optional[int]=Path(description='学生编号') raise HTTPException(status_code=404, detail='该学生就业信息不存在') @emp_api.get('/employment/class/{class_id}',response_model=list[EmploymentResponse],summary='获取班级学生就业信息') -def get_emp_info1(class_id: Optional[int]=Path(description='班级编号') +def get_emp_info2(class_id: Optional[int]=Path(description='班级编号') ,db=Depends(get_db)): e1 = employment_dao.get_emp_dao(class_id=class_id, db=db) if e1: @@ -23,7 +23,7 @@ def get_emp_info1(class_id: Optional[int]=Path(description='班级编号') raise HTTPException(status_code=404, detail='该班级就业信息不存在') @emp_api.get('/employment/students',response_model=list[EmploymentResponse],summary='按照学⽣编号,公司名字,⼯资范围查询学⽣就业信息') -def get_emp_info2(stu_id:int|None = Query(None,description='学生编号') +def get_emp_info3(stu_id:int|None = Query(None,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='最高工资')