【7.1.6】改变查询数据库的方式,去掉mysql方言

pull/24/MERGE
rays 2021-12-15 10:25:09 +08:00
parent 1ad0efe435
commit bec3356659
2 changed files with 2 additions and 2 deletions

View File

@ -50,4 +50,5 @@ public interface SymbolConstant {
String BACK_SLASH = "\\";
String SPACE = " ";
}

View File

@ -360,8 +360,7 @@ public class ApiResourceServiceImpl extends ServiceImpl<ApiResourceMapper, ApiRe
public void refreshTableData() {
LambdaQueryWrapper<ApiResource> 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));