From b7624be989e599505cdf2ccf4f43f3ac952733f0 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Sun, 17 Sep 2023 16:37:54 +0800
Subject: [PATCH] 角色查询修改,只查询当前角色下级角色,用户查询排除超级管理员查询,角色数查询除超级管理员查询查全部外,其他角色只查询当有有的权限菜单

---
 src/main/java/org/springblade/modules/workreport/mapper/WorkReportMapper.xml |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/workreport/mapper/WorkReportMapper.xml b/src/main/java/org/springblade/modules/workreport/mapper/WorkReportMapper.xml
index a208717..94d8315 100644
--- a/src/main/java/org/springblade/modules/workreport/mapper/WorkReportMapper.xml
+++ b/src/main/java/org/springblade/modules/workreport/mapper/WorkReportMapper.xml
@@ -21,6 +21,9 @@
         <if test="workReport.realName!=null and  workReport.realName!=''">
             and bu.real_name like concat('%', #{workReport.realName},'%')
         </if>
+        <if test="workReport.content!=null and  workReport.content!=''">
+            and swr.content like concat('%', #{workReport.content},'%')
+        </if>
         <if test="workReport.type!=null">
             and swr.type = #{workReport.type}
         </if>
@@ -51,6 +54,9 @@
         <if test="workReport.realName!=null and  workReport.realName!=''">
             and bu.real_name like concat('%', #{workReport.realName},'%')
         </if>
+        <if test="workReport.content!=null and  workReport.content!=''">
+            and swr.content like concat('%', #{workReport.content},'%')
+        </if>
         <if test="workReport.type!=null">
             and swr.type = #{workReport.type}
         </if>

--
Gitblit v1.9.3