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/SysLogLoginDao.xml | 13 +++++-------- 1 files changed, 5 insertions(+), 8 deletions(-) diff --git a/zt/core/src/main/resources/mapper/log/SysLogLoginDao.xml b/zt/core/src/main/resources/mapper/log/SysLogLoginDao.xml index ed03cd0..35ec730 100644 --- a/zt/core/src/main/resources/mapper/log/SysLogLoginDao.xml +++ b/zt/core/src/main/resources/mapper/log/SysLogLoginDao.xml @@ -3,11 +3,7 @@ <mapper namespace="com.zt.modules.log.dao.SysLogLoginDao"> <select id="getList" resultType="com.zt.modules.log.model.SysLogLogin"> - 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_login a - ) a + select a.* from sys_log_login a <where> <if test="status!=null"> and status=#{status} @@ -19,10 +15,12 @@ and 1 = 1 </if> <if test="action == 'xtbmybm'"> - and role_names NOT LIKE '%xtgly%' OR role_names NOT LIKE '%xtsjy%' + 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 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} @@ -30,7 +28,6 @@ <if test="order!=null and order!=''"> order by a.CREATE_DATE ${order} </if> - <if test="order==null"> order by a.CREATE_DATE </if> -- Gitblit v1.9.1