From 16924ec6d381cf555f30d87cd13c69715e5a9d5e Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sat, 27 Dec 2025 12:07:03 +0800 Subject: [PATCH] bugfix --- accounting/getaccount.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/accounting/getaccount.py b/accounting/getaccount.py index d22f1c7..14b4d7e 100644 --- a/accounting/getaccount.py +++ b/accounting/getaccount.py @@ -4,10 +4,12 @@ from ahserver.serverenv import ServerEnv, get_serverenv from .const import * from accounting.accountingnode import get_parent_orgid -async def get_account(sor, accounting_orgid, orgid, subjectid, org1id=None): +async def get_account(sor, accounting_orgid, orgid, subjectid, org1id=None, update=False): ss = "a.org1id is NULL" if org1id: ss = "a.org1id = ${org1id}$" + if update: + ss += " for update" sql = """select a.*,