更新db.refresh

This commit is contained in:
2026-09-22 21:23:40 +08:00
parent 8b50a337fa
commit 336467b96a
2 changed files with 4 additions and 0 deletions
@@ -11,6 +11,7 @@ def add_class_dao(c,db):
return False
else:
db.commit()
db.refresh(c1)
return True
+3
View File
@@ -18,6 +18,7 @@ def add_employment_dao(o,db): #新增就业信息函数
return False
else:
db.commit() #提交事务,永久保存
db.refresh(o1)
return True
def add_company_dao(o,db): #添加公司信息函数
@@ -34,6 +35,7 @@ def add_company_dao(o,db): #添加公司信息函数
return False
else:
db.commit() #提交事务,永久保存
db.refresh(o1)
return True
def add_address_dao(o,db): #添加地址区域信息函数
try:
@@ -49,6 +51,7 @@ def add_address_dao(o,db): #添加地址区域信息函数
return False
else:
db.commit() #提交事务,永久保存
db.refresh(o1)
return True