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

解决去掉菜单缓存未刷新的问题。
pull/2/head
dxyx 2021-03-12 09:31:15 +08:00 committed by Gitee
parent 4e5430b5c0
commit 8683401c80
1 changed files with 2 additions and 4 deletions

View File

@ -33,9 +33,7 @@ public interface SysRoleMenuMapper extends BaseMapperX<SysRoleMenuDO> {
.in("menu_id", menuIds));
}
default boolean selectExistsByUpdateTimeAfter(Date maxUpdateTime) {
return selectOne(new QueryWrapper<SysRoleMenuDO>().select("id")
.gt("update_time", maxUpdateTime).last("LIMIT 1")) != null;
}
@Select("select id from sys_role_menu where update_time > #{maxUpdateTime} limit 1")
List<Long> selectExistsByUpdateTimeAfter(Date maxUpdateTime);
}