Commit fbd09cf4 authored by ZhengJie's avatar ZhengJie
Browse files

[代码优化](v2.5): update

parent 157373eb
......@@ -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());
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment