diff --git a/continew-admin-monitor/src/main/java/top/charles7c/cnadmin/monitor/interceptor/LogInterceptor.java b/continew-admin-monitor/src/main/java/top/charles7c/cnadmin/monitor/interceptor/LogInterceptor.java index 8a76d962f..072b679ba 100644 --- a/continew-admin-monitor/src/main/java/top/charles7c/cnadmin/monitor/interceptor/LogInterceptor.java +++ b/continew-admin-monitor/src/main/java/top/charles7c/cnadmin/monitor/interceptor/LogInterceptor.java @@ -84,7 +84,7 @@ public class LogInterceptor implements HandlerInterceptor { @Override public boolean preHandle(@NonNull HttpServletRequest request, @NonNull HttpServletResponse response, @NonNull Object handler) { - if (checkIsNeedRecord(handler, request)) { + if (this.isNeedRecord(handler, request)) { // 记录时间 this.logCreateTime(); } @@ -336,15 +336,15 @@ private String getResponseBody(HttpServletResponse response) { } /** - * 检查是否要记录系统日志 + * 是否要记录系统日志 * * @param handler * 处理器 * @param request * 请求对象 - * @return true 需要记录,false 不需要记录 + * @return true 需要记录;false 不需要记录 */ - private boolean checkIsNeedRecord(Object handler, HttpServletRequest request) { + private boolean isNeedRecord(Object handler, HttpServletRequest request) { // 1、未启用时,不需要记录系统日志 if (!(handler instanceof HandlerMethod) || Boolean.FALSE.equals(operationLogProperties.getEnabled())) { return false; diff --git a/continew-admin-system/src/main/java/top/charles7c/cnadmin/auth/service/impl/OnlineUserServiceImpl.java b/continew-admin-system/src/main/java/top/charles7c/cnadmin/auth/service/impl/OnlineUserServiceImpl.java index 160b952bb..2bceae4c8 100644 --- a/continew-admin-system/src/main/java/top/charles7c/cnadmin/auth/service/impl/OnlineUserServiceImpl.java +++ b/continew-admin-system/src/main/java/top/charles7c/cnadmin/auth/service/impl/OnlineUserServiceImpl.java @@ -72,7 +72,7 @@ public List list(OnlineUserQuery query) { } // 检查是否符合查询条件 LoginUser loginUser = LoginHelper.getLoginUser(token); - if (this.checkQuery(query, loginUser)) { + if (this.isMatchQuery(query, loginUser)) { loginUserList.add(loginUser); } } @@ -95,7 +95,7 @@ public void cleanByRoleId(Long roleId) { } /** - * 检查是否符合查询条件 + * 是否符合查询条件 * * @param query * 查询条件 @@ -103,7 +103,7 @@ public void cleanByRoleId(Long roleId) { * 登录用户信息 * @return 是否符合查询条件 */ - private boolean checkQuery(OnlineUserQuery query, LoginUser loginUser) { + private boolean isMatchQuery(OnlineUserQuery query, LoginUser loginUser) { boolean flag1 = true; String nickname = query.getNickname(); if (StrUtil.isNotBlank(nickname)) { diff --git a/continew-admin-system/src/main/java/top/charles7c/cnadmin/system/service/impl/DeptServiceImpl.java b/continew-admin-system/src/main/java/top/charles7c/cnadmin/system/service/impl/DeptServiceImpl.java index e65abda15..5902c884b 100644 --- a/continew-admin-system/src/main/java/top/charles7c/cnadmin/system/service/impl/DeptServiceImpl.java +++ b/continew-admin-system/src/main/java/top/charles7c/cnadmin/system/service/impl/DeptServiceImpl.java @@ -65,7 +65,7 @@ public class DeptServiceImpl extends BaseServiceImpl dictIds) { } /** - * 检查字典值是否存在 + * 字典值是否存在 * * @param value * 字典值 @@ -102,7 +102,7 @@ public void deleteByDictIds(List dictIds) { * 字典 ID * @return 是否存在 */ - private boolean checkValueExists(String value, Long id, Long dictId) { + private boolean isValueExists(String value, Long id, Long dictId) { return baseMapper.lambdaQuery().eq(DictItemDO::getValue, value).eq(DictItemDO::getDictId, dictId) .ne(null != id, DictItemDO::getId, id).exists(); } diff --git a/continew-admin-system/src/main/java/top/charles7c/cnadmin/system/service/impl/DictServiceImpl.java b/continew-admin-system/src/main/java/top/charles7c/cnadmin/system/service/impl/DictServiceImpl.java index f878c5ecc..0e84b466c 100644 --- a/continew-admin-system/src/main/java/top/charles7c/cnadmin/system/service/impl/DictServiceImpl.java +++ b/continew-admin-system/src/main/java/top/charles7c/cnadmin/system/service/impl/DictServiceImpl.java @@ -56,9 +56,9 @@ public class DictServiceImpl extends BaseServiceImpl list() { } /** - * 检查名称是否存在 + * 名称是否存在 * * @param name * 名称 @@ -113,7 +111,7 @@ public List list() { * ID * @return 是否存在 */ - private boolean checkNameExists(String name, Long parentId, Long id) { + private boolean isNameExists(String name, Long parentId, Long id) { return baseMapper.lambdaQuery().eq(MenuDO::getTitle, name).eq(MenuDO::getParentId, parentId) .ne(null != id, MenuDO::getId, id).exists(); } diff --git a/continew-admin-system/src/main/java/top/charles7c/cnadmin/system/service/impl/RoleServiceImpl.java b/continew-admin-system/src/main/java/top/charles7c/cnadmin/system/service/impl/RoleServiceImpl.java index 37ef71318..3ebdf2441 100644 --- a/continew-admin-system/src/main/java/top/charles7c/cnadmin/system/service/impl/RoleServiceImpl.java +++ b/continew-admin-system/src/main/java/top/charles7c/cnadmin/system/service/impl/RoleServiceImpl.java @@ -68,9 +68,9 @@ public class RoleServiceImpl extends BaseServiceImpl