From 09a3a971ff951dfc0382a024a70835a8e59be26c Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sat, 7 Mar 2020 10:11:22 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=8E=92=E5=BA=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mybatis/monitor/SysOperLogMapper.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ruoyi/src/main/resources/mybatis/monitor/SysOperLogMapper.xml b/ruoyi/src/main/resources/mybatis/monitor/SysOperLogMapper.xml index 50e18b48..34669145 100644 --- a/ruoyi/src/main/resources/mybatis/monitor/SysOperLogMapper.xml +++ b/ruoyi/src/main/resources/mybatis/monitor/SysOperLogMapper.xml @@ -25,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select oper_id, title, business_type, method, request_method, operator_type, oper_name, dept_name, oper_url, oper_ip, oper_location, oper_param, json_result, status, error_msg, oper_time - from sys_oper_log order by oper_id desc + from sys_oper_log @@ -39,7 +39,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" AND title like concat('%', #{title}, '%') - + AND business_type = #{businessType} @@ -61,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" and date_format(oper_time,'%y%m%d') <= date_format(#{endTime},'%y%m%d') + order by oper_id desc From 166d5ec55fa9fb4294d55babf6b5068505679101 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sat, 7 Mar 2020 10:19:04 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=EF=BC=8C=E5=AF=86=E7=A0=81=E5=90=8Eredis?= =?UTF-8?q?=E4=B8=AD=E7=99=BB=E5=BD=95=E4=BF=A1=E6=81=AF=E4=B8=8D=E4=BC=9A?= =?UTF-8?q?=E8=BF=87=E6=9C=9F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../framework/security/service/SysPermissionService.java | 8 ++++---- .../ruoyi/framework/security/service/TokenService.java | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/ruoyi/src/main/java/com/ruoyi/framework/security/service/SysPermissionService.java b/ruoyi/src/main/java/com/ruoyi/framework/security/service/SysPermissionService.java index 1bdb667f..021e9a5b 100644 --- a/ruoyi/src/main/java/com/ruoyi/framework/security/service/SysPermissionService.java +++ b/ruoyi/src/main/java/com/ruoyi/framework/security/service/SysPermissionService.java @@ -51,16 +51,16 @@ public class SysPermissionService */ public Set getMenuPermission(SysUser user) { - Set roles = new HashSet(); + Set perms = new HashSet(); // 管理员拥有所有权限 if (user.isAdmin()) { - roles.add("*:*:*"); + perms.add("*:*:*"); } else { - roles.addAll(menuService.selectMenuPermsByUserId(user.getUserId())); + perms.addAll(menuService.selectMenuPermsByUserId(user.getUserId())); } - return roles; + return perms; } } diff --git a/ruoyi/src/main/java/com/ruoyi/framework/security/service/TokenService.java b/ruoyi/src/main/java/com/ruoyi/framework/security/service/TokenService.java index 3ecbc000..7637ed88 100644 --- a/ruoyi/src/main/java/com/ruoyi/framework/security/service/TokenService.java +++ b/ruoyi/src/main/java/com/ruoyi/framework/security/service/TokenService.java @@ -77,8 +77,7 @@ public class TokenService { if (StringUtils.isNotNull(loginUser) && StringUtils.isNotEmpty(loginUser.getToken())) { - String userKey = getTokenKey(loginUser.getToken()); - redisCache.setCacheObject(userKey, loginUser); + refreshToken(loginUser); } } From 103583a847890f8c1abe82cf40348bb61c9a33dc Mon Sep 17 00:00:00 2001 From: RuoYi Date: Sun, 8 Mar 2020 21:16:16 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E6=97=B6=E9=97=B4=E8=8E=B7=E5=8F=96=E5=B1=9E?= =?UTF-8?q?=E6=80=A7=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/system/user/profile/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-ui/src/views/system/user/profile/index.vue b/ruoyi-ui/src/views/system/user/profile/index.vue index 7aff1972..aa8d9e61 100644 --- a/ruoyi-ui/src/views/system/user/profile/index.vue +++ b/ruoyi-ui/src/views/system/user/profile/index.vue @@ -33,7 +33,7 @@
  • 创建日期 -
    2018-08-23 09:11:56
    +
    {{ user.createTime }}