修改删除模块debug
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ def get_emp_dao(
|
||||
|
||||
def delete_emp_dao(id,db):
|
||||
try: # 删除有返回值,删除的行数
|
||||
rows = db.query(Employments).filter(Employments.id == id).update( is_deleted=1 )
|
||||
rows = db.query(Employments).filter(Employments.id == id).update( {'is_deleted':1} )
|
||||
|
||||
except Exception as e:
|
||||
print(f'删除失败,{e}')
|
||||
|
||||
Reference in New Issue
Block a user