Browse Source

no message

sprint/s4
董书康 6 months ago
parent
commit
0548369573
1 changed files with 15 additions and 1 deletions
  1. +15
    -1
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/provider/impl/BasicApiServiceImpl.java

+ 15
- 1
demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/provider/impl/BasicApiServiceImpl.java View File

@ -20,6 +20,7 @@ import org.apache.commons.lang.StringUtils;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.HashMap; import java.util.HashMap;
import java.util.List;
import java.util.Map; import java.util.Map;
/** /**
@ -100,7 +101,20 @@ public class BasicApiServiceImpl implements BasicApiService {
if (StringUtils.isNotBlank(sysId)) { if (StringUtils.isNotBlank(sysId)) {
lambdaQuery.eq(LayoutConfig::getSysId, sysId); lambdaQuery.eq(LayoutConfig::getSysId, sysId);
} }
return lambdaQuery.list();
List<LayoutConfig> list = lambdaQuery.list();
if (list.isEmpty()) {
lambdaQuery.clear();
lambdaQuery.eq(LayoutConfig::getUserId, "default");
lambdaQuery.eq(LayoutConfig::getTenantId, tenantId);
if (StringUtils.isNotBlank(sysId)) {
lambdaQuery.eq(LayoutConfig::getSysId, sysId);
}
list = lambdaQuery.list();
}
return list;
} }
} }

Loading…
Cancel
Save