提交 f7ff398e 编写于 作者: sq3536's avatar sq3536

lite

上级 d380f646
...@@ -116,7 +116,8 @@ public class DevBootSecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -116,7 +116,8 @@ public class DevBootSecurityConfig extends WebSecurityConfigurerAdapter {
// 文件操作 // 文件操作
.antMatchers("/"+downloadpath+"/**").permitAll() .antMatchers("/"+downloadpath+"/**").permitAll()
.antMatchers("/"+uploadpath).permitAll() .antMatchers("/"+uploadpath).permitAll()
.antMatchers("/"+previewpath+"/**").permitAll(); .antMatchers("/"+previewpath+"/**").permitAll()
.antMatchers("/lite/**").permitAll();
for (String excludePattern : excludesPattern) { for (String excludePattern : excludesPattern) {
......
...@@ -39,12 +39,12 @@ public class LiteStorage { ...@@ -39,12 +39,12 @@ public class LiteStorage {
if(metaEntityStorage.containsKey(name)) if(metaEntityStorage.containsKey(name))
return metaEntityStorage.get(name); return metaEntityStorage.get(name);
else if(name.contains(".")) { else if(name.contains(".")) {
String[] args=name.split("."); String[] args=name.split("[.]");
String systemId=args[0]; String systemId=args[0];
String code=args[1]; String code=args[1];
MetaEntity metaEntity = service.getMetaEntityService().getOne(Wrappers.<MetaEntity>lambdaQuery().and( MetaEntity metaEntity = service.getMetaEntityService().getOne(Wrappers.<MetaEntity>lambdaQuery().and(
wrapper -> wrapper ->
wrapper.eq(MetaEntity::getSystemId,systemId).or().eq(MetaEntity::getSystemName,systemId)).and( wrapper.eq(MetaEntity::getSystemId,systemId)).and(
wrapper -> wrapper ->
wrapper.eq(MetaEntity::getEntityName,code).or().eq(MetaEntity::getCodeName,code)) wrapper.eq(MetaEntity::getEntityName,code).or().eq(MetaEntity::getCodeName,code))
,false); ,false);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册