From 4d9d29b9933843188e9dfbbed1ffe65029300ae4 Mon Sep 17 00:00:00 2001 From: dongsk Date: Tue, 30 Apr 2024 18:32:34 +0800 Subject: [PATCH] default --- .../athena/app/provider/impl/BasicApiServiceImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/provider/impl/BasicApiServiceImpl.java b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/provider/impl/BasicApiServiceImpl.java index 89b9fd1..5c9c644 100644 --- a/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/provider/impl/BasicApiServiceImpl.java +++ b/demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/provider/impl/BasicApiServiceImpl.java @@ -105,13 +105,13 @@ public class BasicApiServiceImpl implements BasicApiService { List list = lambdaQuery.list(); if (list.isEmpty()) { - lambdaQuery.clear(); - lambdaQuery.eq(LayoutConfig::getUserId, "default"); - lambdaQuery.eq(LayoutConfig::getTenantId, tenantId); + LambdaQueryChainWrapper lambdaQueryX = layoutConfigService.lambdaQuery(); + lambdaQueryX.eq(LayoutConfig::getUserId, "default"); + lambdaQueryX.eq(LayoutConfig::getTenantId, tenantId); if (StringUtils.isNotBlank(sysId)) { - lambdaQuery.eq(LayoutConfig::getSysId, sysId); + lambdaQueryX.eq(LayoutConfig::getSysId, sysId); } - list = lambdaQuery.list(); + list = lambdaQueryX.list(); } return list;