diff --git a/kernel-a-rule/src/main/java/cn/stylefeng/roses/kernel/rule/constants/SymbolConstant.java b/kernel-a-rule/src/main/java/cn/stylefeng/roses/kernel/rule/constants/SymbolConstant.java index 895aea8cc..402f40604 100644 --- a/kernel-a-rule/src/main/java/cn/stylefeng/roses/kernel/rule/constants/SymbolConstant.java +++ b/kernel-a-rule/src/main/java/cn/stylefeng/roses/kernel/rule/constants/SymbolConstant.java @@ -50,4 +50,5 @@ public interface SymbolConstant { String BACK_SLASH = "\\"; + String SPACE = " "; } diff --git a/kernel-s-system/system-business-resource/src/main/java/cn/stylefeng/roses/kernel/system/modular/resource/service/impl/ApiResourceServiceImpl.java b/kernel-s-system/system-business-resource/src/main/java/cn/stylefeng/roses/kernel/system/modular/resource/service/impl/ApiResourceServiceImpl.java index c642685bc..5bda357fe 100644 --- a/kernel-s-system/system-business-resource/src/main/java/cn/stylefeng/roses/kernel/system/modular/resource/service/impl/ApiResourceServiceImpl.java +++ b/kernel-s-system/system-business-resource/src/main/java/cn/stylefeng/roses/kernel/system/modular/resource/service/impl/ApiResourceServiceImpl.java @@ -360,8 +360,7 @@ public class ApiResourceServiceImpl extends ServiceImpl apiResourceLambdaQueryWrapper = new LambdaQueryWrapper<>(); apiResourceLambdaQueryWrapper.eq(ApiResource::getCurrentSystemFlag, YesOrNotEnum.Y.getCode()); - apiResourceLambdaQueryWrapper.last("limit 1"); - ApiResource apiResource = this.getOne(apiResourceLambdaQueryWrapper); + ApiResource apiResource = this.getOne(apiResourceLambdaQueryWrapper,false); if (ObjectUtil.isNotEmpty(apiResource)) { String resourceCode = apiResource.getResourceCode(); String oldAppCode = resourceCode.substring(0, resourceCode.indexOf(SymbolConstant.DOLLAR));