From 0af7c94ae6816e2f59e0c3589f662430401df624 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期五, 17 二月 2023 16:05:40 +0800 Subject: [PATCH] fix 修复 超管切换租户后 刷新浏览器重新加载用户信息接口导致租户id错乱问题 --- ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java index 7cf6b53..d7ec93c 100644 --- a/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java +++ b/ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysPostMapper.java @@ -2,6 +2,7 @@ import com.ruoyi.common.mybatis.core.mapper.BaseMapperPlus; import com.ruoyi.system.domain.SysPost; +import com.ruoyi.system.domain.vo.SysPostVo; import java.util.List; @@ -10,7 +11,7 @@ * * @author Lion Li */ -public interface SysPostMapper extends BaseMapperPlus<SysPostMapper, SysPost, SysPost> { +public interface SysPostMapper extends BaseMapperPlus<SysPostMapper, SysPost, SysPostVo> { /** * 鏍规嵁鐢ㄦ埛ID鑾峰彇宀椾綅閫夋嫨妗嗗垪琛� @@ -26,6 +27,6 @@ * @param userName 鐢ㄦ埛鍚� * @return 缁撴灉 */ - List<SysPost> selectPostsByUserName(String userName); + List<SysPostVo> selectPostsByUserName(String userName); } -- Gitblit v1.9.3