Browse Source

Merge branch 'sprint/s4' into release/s4

release/s4
董书康 7 months ago
parent
commit
f78f6d7b0e
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      demo-athenaopt_backend/develop/src/main/java/com/digiwin/athena/app/provider/impl/BasicApiServiceImpl.java

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

@ -77,7 +77,7 @@ public class BasicApiServiceImpl implements BasicApiService {
.eq(LayoutConfig::getTenantId, layoutConfig.getTenantId()) .eq(LayoutConfig::getTenantId, layoutConfig.getTenantId())
.eq(LayoutConfig::getSysId, layoutConfig.getSysId()); .eq(LayoutConfig::getSysId, layoutConfig.getSysId());
if (lambdaQuery.exists()) { if (lambdaQuery.exists()) {
layoutConfigService.lambdaUpdate()
return layoutConfigService.lambdaUpdate()
.set(LayoutConfig::getTop, layoutConfig.getTop()) .set(LayoutConfig::getTop, layoutConfig.getTop())
.set(LayoutConfig::getLeft, layoutConfig.getLeft()) .set(LayoutConfig::getLeft, layoutConfig.getLeft())
.set(LayoutConfig::getWidth, layoutConfig.getWidth()) .set(LayoutConfig::getWidth, layoutConfig.getWidth())
@ -87,10 +87,8 @@ public class BasicApiServiceImpl implements BasicApiService {
.eq(LayoutConfig::getSysId, layoutConfig.getSysId()) .eq(LayoutConfig::getSysId, layoutConfig.getSysId())
.update(); .update();
} else { } else {
layoutConfigService.save(layoutConfig);
return layoutConfigService.save(layoutConfig);
} }
return layoutConfigService.saveOrUpdate(layoutConfig);
} }
@Override @Override


Loading…
Cancel
Save