Compare commits

...

2 Commits

Author SHA1 Message Date
ping
d8b57bc6d2 Merge branch 'main' of https://git.opencomputing.cn/yumoqing/kboss 2025-09-15 17:09:27 +08:00
ping
2eb3255294 更新 删除权限接口 2025-09-15 17:08:59 +08:00

View File

@ -3,7 +3,8 @@ async def delpermission(ns):
async with db.sqlorContext('kboss') as sor:
if ns:
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']}
reacs = await sor.R('permission', dictns)
for i in reacs: