修改删除模块debug

This commit is contained in:
2026-09-21 16:18:59 +08:00
parent def4b1d2c3
commit 2bc1e58047
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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}')