From 1772fc5e211f9e9e0ab4cdc6c29b436aac178c2a Mon Sep 17 00:00:00 2001
From: jinlin <jinlin>
Date: 星期五, 23 二月 2024 12:19:55 +0800
Subject: [PATCH] 修改

---
 zt/core/src/main/resources/mapper/log/SysLogOperationDao.xml |   33 +++++----------------------------
 1 files changed, 5 insertions(+), 28 deletions(-)

diff --git a/zt/core/src/main/resources/mapper/log/SysLogOperationDao.xml b/zt/core/src/main/resources/mapper/log/SysLogOperationDao.xml
index 7e3d590..e536fb2 100644
--- a/zt/core/src/main/resources/mapper/log/SysLogOperationDao.xml
+++ b/zt/core/src/main/resources/mapper/log/SysLogOperationDao.xml
@@ -20,11 +20,8 @@
     </sql>
 
     <select id="getList" resultType="com.zt.modules.log.model.SysLogOperation">
-        select * from (
         select a.*
-        ,(SELECT replace(GROUP_CONCAT(aa.name),',',';') FROM sys_role aa,sys_role_user bb WHERE aa.id=bb.role_id AND bb.user_id = a.creator) AS role_names
-        from sys_log_operation a
-        ) a
+            from sys_log_operation a
         <where>
             <if test="whereSql!=null">
                 ${whereSql}
@@ -33,32 +30,12 @@
                 and 1 = 1
             </if>
             <if test="action == 'xtbmybm'">
-                and role_names NOT LIKE '%xtgly%'  OR role_names NOT LIKE '%xtsjy%'
-                and request_uri not IN (
-                SELECT
-                a.dict_label AS urlLabel
-                FROM
-                sys_dict_data a,
-                sys_dict_type b
-                WHERE 1=1
-                AND b.dict_type = 'adminURL'
-                AND b.id = a.dict_type_id
-                AND b.is_delete = 0
-                )
+                and a.creator not in (select user_id from sys_role_user
+                where role_id in (select id from sys_role where code in ('xtglybm','xtbmybm','xtsjybm')))
             </if>
             <if test="action == 'xtsjybm'">
-                and role_names LIKE '%xtgly%'  OR role_names LIKE '%xtsjy%'
-                and request_uri IN (
-                SELECT
-                a.dict_label AS urlLabel
-                FROM
-                sys_dict_data a,
-                sys_dict_type b
-                WHERE 1=1
-                AND b.dict_type = 'adminURL'
-                AND b.id = a.dict_type_id
-                AND b.is_delete = 0
-                )
+                and a.creator in (select user_id from sys_role_user
+                where role_id in (select id from sys_role where code in ('xtglybm','xtbmybm')))
             </if>
             <if test="action == 'other'">
                 and a.creator = ${currentUserId}

--
Gitblit v1.9.1