mirror of https://gitee.com/stylefeng/roses
【7.1.6】改变查询数据库的方式,去掉mysql方言
parent
1ad0efe435
commit
bec3356659
|
@ -50,4 +50,5 @@ public interface SymbolConstant {
|
|||
|
||||
String BACK_SLASH = "\\";
|
||||
|
||||
String SPACE = " ";
|
||||
}
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue