From 26436b028bee79fb337facc455b693212f2d1821 Mon Sep 17 00:00:00 2001 From: dongsk Date: Tue, 30 Apr 2024 14:15:36 +0800 Subject: [PATCH] bug --- .../athena/app/provider/impl/BasicApiServiceImpl.java | 6 ++---- 1 file changed, 2 insertions(+), 4 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 2b1bf11..b6d2d5a 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 @@ -77,7 +77,7 @@ public class BasicApiServiceImpl implements BasicApiService { .eq(LayoutConfig::getTenantId, layoutConfig.getTenantId()) .eq(LayoutConfig::getSysId, layoutConfig.getSysId()); if (lambdaQuery.exists()) { - layoutConfigService.lambdaUpdate() + return layoutConfigService.lambdaUpdate() .set(LayoutConfig::getTop, layoutConfig.getTop()) .set(LayoutConfig::getLeft, layoutConfig.getLeft()) .set(LayoutConfig::getWidth, layoutConfig.getWidth()) @@ -87,10 +87,8 @@ public class BasicApiServiceImpl implements BasicApiService { .eq(LayoutConfig::getSysId, layoutConfig.getSysId()) .update(); } else { - layoutConfigService.save(layoutConfig); + return layoutConfigService.save(layoutConfig); } - - return layoutConfigService.saveOrUpdate(layoutConfig); } @Override