main #34
@ -3,7 +3,8 @@ async def delpermission(ns):
|
|||||||
async with db.sqlorContext('kboss') as sor:
|
async with db.sqlorContext('kboss') as sor:
|
||||||
if ns:
|
if ns:
|
||||||
ns['del_flg'] = '1'
|
ns['del_flg'] = '1'
|
||||||
await sor.U('permission', ns)
|
update_sql = """update permission set del_flg = '1' where id = '%s'""" % ns['id']
|
||||||
|
await sor.sqlExe(update_sql, {})
|
||||||
dictns = {'parentid': ns['id']}
|
dictns = {'parentid': ns['id']}
|
||||||
reacs = await sor.R('permission', dictns)
|
reacs = await sor.R('permission', dictns)
|
||||||
for i in reacs:
|
for i in reacs:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user