Commit 8683401c802e1e98d9de8f5427a8f1cdf4b0c4a5

Authored by dxyx
Committed by Gitee
1 parent 4e5430b5

解决由于mybatis-plus无法过滤软删除导致角色去掉菜单缓存未刷新的问题。

解决去掉菜单缓存未刷新的问题。
src/main/java/cn/iocoder/dashboard/modules/system/dal/mysql/permission/SysRoleMenuMapper.java
... ... @@ -33,9 +33,7 @@ public interface SysRoleMenuMapper extends BaseMapperX<SysRoleMenuDO> {
33 33 .in("menu_id", menuIds));
34 34 }
35 35  
36   - default boolean selectExistsByUpdateTimeAfter(Date maxUpdateTime) {
37   - return selectOne(new QueryWrapper<SysRoleMenuDO>().select("id")
38   - .gt("update_time", maxUpdateTime).last("LIMIT 1")) != null;
39   - }
  36 + @Select("select id from sys_role_menu where update_time > #{maxUpdateTime} limit 1")
  37 + List<Long> selectExistsByUpdateTimeAfter(Date maxUpdateTime);
40 38  
41 39 }
... ...