|
@ -72,6 +72,24 @@ public class BasicApiServiceImpl implements BasicApiService { |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public Object layoutConfig(LayoutConfig layoutConfig) throws Exception { |
|
|
public Object layoutConfig(LayoutConfig layoutConfig) throws Exception { |
|
|
|
|
|
LambdaQueryChainWrapper<LayoutConfig> lambdaQuery = layoutConfigService.lambdaQuery() |
|
|
|
|
|
.eq(LayoutConfig::getUserId, layoutConfig.getUserId()) |
|
|
|
|
|
.eq(LayoutConfig::getTenantId, layoutConfig.getTenantId()) |
|
|
|
|
|
.eq(LayoutConfig::getSysId, layoutConfig.getSysId()); |
|
|
|
|
|
if (lambdaQuery.exists()) { |
|
|
|
|
|
layoutConfigService.lambdaUpdate() |
|
|
|
|
|
.set(LayoutConfig::getTop, layoutConfig.getTop()) |
|
|
|
|
|
.set(LayoutConfig::getLeft, layoutConfig.getLeft()) |
|
|
|
|
|
.set(LayoutConfig::getWidth, layoutConfig.getWidth()) |
|
|
|
|
|
.set(LayoutConfig::getHeight, layoutConfig.getHeight()) |
|
|
|
|
|
.eq(LayoutConfig::getUserId, layoutConfig.getUserId()) |
|
|
|
|
|
.eq(LayoutConfig::getTenantId, layoutConfig.getTenantId()) |
|
|
|
|
|
.eq(LayoutConfig::getSysId, layoutConfig.getSysId()) |
|
|
|
|
|
.update(); |
|
|
|
|
|
} else { |
|
|
|
|
|
layoutConfigService.save(layoutConfig); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return layoutConfigService.saveOrUpdate(layoutConfig); |
|
|
return layoutConfigService.saveOrUpdate(layoutConfig); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|