This commit is contained in:
2026-09-22 15:36:24 +08:00
parent 5a191c291e
commit b829e4063f
2 changed files with 2 additions and 3 deletions
-3
View File
@@ -31,12 +31,9 @@ def get_emp_dao(db,stu_id=None,class_id=None,company_name=None,min_salary=None,m
q = q.filter(Employment_info.salary <= max_salary)
r = q.all()
if not r:
raise HTTPException(status_code=500,detail='查询异常,没有结果!')
return r
def add_emp_dao(o,db):
try:
stu = db.query(Student_Model).filter(Student_Model.stu_id == o['stu_id']