mirror of https://github.com/elunez/eladmin
[代码优化](v2.5): update
parent
157373eb8b
commit
fbd09cf4d2
|
@ -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:";
|
||||
/**
|
||||
* 菜单
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -234,7 +234,7 @@ public class RoleServiceImpl implements RoleService {
|
|||
private void cleanCache(Role resources, List<User> users) {
|
||||
// 清理缓存
|
||||
if (CollectionUtil.isNotEmpty(users)) {
|
||||
users.stream().forEach(item -> {
|
||||
users.forEach(item -> {
|
||||
userCacheClean.cleanUserCache(item.getUsername());
|
||||
});
|
||||
Set<Long> userIds = users.stream().map(User::getId).collect(Collectors.toSet());
|
||||
|
|
Loading…
Reference in New Issue