Skip to content

Commit fbd09cf

Browse files
committed
[代码优化](v2.5): update
1 parent 157373e commit fbd09cf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

eladmin-common/src/main/java/me/zhengjie/utils/CacheKey.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
1716
package me.zhengjie.utils;
1817

1918

@@ -23,6 +22,7 @@
2322
* @apiNote: 关于缓存的Key 集合
2423
*/
2524
public interface CacheKey {
25+
2626
/**
2727
* 内置 用户、岗位、应用、菜单、角色 相关key
2828
*/
@@ -41,7 +41,6 @@ public interface CacheKey {
4141
/**
4242
* s数据
4343
*/
44-
4544
String DATE_USER = "data::user:";
4645
/**
4746
* 菜单

eladmin-system/src/main/java/me/zhengjie/modules/quartz/utils/ExecutionJob.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import me.zhengjie.service.EmailService;
2929
import me.zhengjie.utils.RedisUtils;
3030
import me.zhengjie.utils.SpringContextHolder;
31+
import me.zhengjie.utils.StringUtils;
3132
import me.zhengjie.utils.ThrowableUtil;
3233
import org.quartz.JobExecutionContext;
3334
import org.springframework.scheduling.annotation.Async;

eladmin-system/src/main/java/me/zhengjie/modules/system/service/impl/RoleServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ public void delCaches(Long id) {
234234
private void cleanCache(Role resources, List<User> users) {
235235
// 清理缓存
236236
if (CollectionUtil.isNotEmpty(users)) {
237-
users.stream().forEach(item -> {
237+
users.forEach(item -> {
238238
userCacheClean.cleanUserCache(item.getUsername());
239239
});
240240
Set<Long> userIds = users.stream().map(User::getId).collect(Collectors.toSet());

0 commit comments

Comments
 (0)