diff --git a/eladmin-common/src/main/java/me/zhengjie/utils/CacheKey.java b/eladmin-common/src/main/java/me/zhengjie/utils/CacheKey.java index b2f9aa35..aee6b47f 100644 --- a/eladmin-common/src/main/java/me/zhengjie/utils/CacheKey.java +++ b/eladmin-common/src/main/java/me/zhengjie/utils/CacheKey.java @@ -13,7 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ - package me.zhengjie.utils; @@ -23,6 +22,7 @@ package me.zhengjie.utils; * @apiNote: 关于缓存的Key 集合 */ public interface CacheKey { + /** * 内置 用户、岗位、应用、菜单、角色 相关key */ @@ -41,7 +41,6 @@ public interface CacheKey { /** * s数据 */ - String DATE_USER = "data::user:"; /** * 菜单 diff --git a/eladmin-system/src/main/java/me/zhengjie/modules/quartz/utils/ExecutionJob.java b/eladmin-system/src/main/java/me/zhengjie/modules/quartz/utils/ExecutionJob.java index 380f5cf9..798f9c35 100644 --- a/eladmin-system/src/main/java/me/zhengjie/modules/quartz/utils/ExecutionJob.java +++ b/eladmin-system/src/main/java/me/zhengjie/modules/quartz/utils/ExecutionJob.java @@ -28,6 +28,7 @@ import me.zhengjie.modules.quartz.service.QuartzJobService; import me.zhengjie.service.EmailService; import me.zhengjie.utils.RedisUtils; import me.zhengjie.utils.SpringContextHolder; +import me.zhengjie.utils.StringUtils; import me.zhengjie.utils.ThrowableUtil; import org.quartz.JobExecutionContext; import org.springframework.scheduling.annotation.Async; diff --git a/eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/RoleServiceImpl.java b/eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/RoleServiceImpl.java index d694334c..a15d4edc 100644 --- a/eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/RoleServiceImpl.java +++ b/eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/RoleServiceImpl.java @@ -234,7 +234,7 @@ public class RoleServiceImpl implements RoleService { private void cleanCache(Role resources, List users) { // 清理缓存 if (CollectionUtil.isNotEmpty(users)) { - users.stream().forEach(item -> { + users.forEach(item -> { userCacheClean.cleanUserCache(item.getUsername()); }); Set userIds = users.stream().map(User::getId).collect(Collectors.toSet());