修改外键
This commit is contained in:
+2
-2
@@ -90,9 +90,9 @@ def get_emp_dao( #获取学生
|
||||
# q = q.filter( Employments.id == stuid )
|
||||
|
||||
if sname: #根据学生姓名筛选
|
||||
q = q.filter( Employments.sname == sname )
|
||||
q = q.filter( Students.name == sname )
|
||||
if class_num:
|
||||
q = q.filter(Employments.class_num == class_num)
|
||||
q = q.filter(ClassInfo.class_num == class_num)
|
||||
if somewhere:
|
||||
q = q.filter(Address.somewhere.like(f'%{somewhere}%'))
|
||||
if employment_company: #根据公司姓名筛选
|
||||
|
||||
Reference in New Issue
Block a user