From 75542c5be149acf57e9b312a080ad3d72fb73fba Mon Sep 17 00:00:00 2001 From: FatttSnake Date: Mon, 15 May 2023 09:09:16 +0800 Subject: [PATCH] Fixed the bug that it was impossible to get roles without permissions --- Pinnacle/src/main/resources/mapper/RoleMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pinnacle/src/main/resources/mapper/RoleMapper.xml b/Pinnacle/src/main/resources/mapper/RoleMapper.xml index 2648c91..fd967c7 100644 --- a/Pinnacle/src/main/resources/mapper/RoleMapper.xml +++ b/Pinnacle/src/main/resources/mapper/RoleMapper.xml @@ -28,7 +28,7 @@ left join t_menu tm on tp.id = tm.power_id left join t_element te on tp.id = te.power_id left join t_operation t on tp.id = t.power_id - where t_role.deleted = 0 and tpr.deleted = 0; + where t_role.deleted = 0 and (tpr.deleted = 0 or tpr.deleted is null);