This commit is contained in:
yumoqing 2025-07-09 21:03:34 +08:00
parent d03b45962f
commit 362fe4db6b

View File

@ -88,7 +88,7 @@ async def create_user(sor, ns, roles=[]):
for rt in roles: for rt in roles:
sql = "select * from role where orgtypeid = ${otid}$ and name in ${roles}$)" sql = "select * from role where orgtypeid = ${otid}$ and name in ${roles}$)"
recs = await sor.sqlExe(sql, { recs = await sor.sqlExe(sql, {
'otid': rt['orgtypeid', 'otid': rt['orgtypeid'],
'roles': rt['roles'] 'roles': rt['roles']
}) })
for r in recs: for r in recs: