'楼层装修演示站点被覆盖问题处理'
This commit is contained in:
parent
22c004a892
commit
29f73eaaa1
@ -1,6 +1,5 @@
|
||||
package cn.lili.modules.page.serviceimpl;
|
||||
|
||||
import cn.hutool.core.text.CharSequenceUtil;
|
||||
import cn.hutool.core.text.CharSequenceUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import cn.lili.common.enums.ClientTypeEnum;
|
||||
@ -65,6 +64,17 @@ public class PageDataServiceImpl extends ServiceImpl<PageDataMapper, PageData> i
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public PageData addPageData(PageData pageData) {
|
||||
|
||||
|
||||
//演示站点判定
|
||||
if (systemSettingProperties.getDemoSite()) {
|
||||
//如果开启页面,并且是平台楼层装修
|
||||
if (pageData.getPageShow().equals(SwitchEnum.OPEN.name()) && pageData.getPageType().equals(PageEnum.INDEX.name())) {
|
||||
pageData.setPageShow(SwitchEnum.CLOSE.name());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//如果页面为发布,则关闭其他页面,开启此页面
|
||||
if (pageData.getPageShow().equals(SwitchEnum.OPEN.name())) {
|
||||
LambdaUpdateWrapper<PageData> lambdaUpdateWrapper = Wrappers.lambdaUpdate();
|
||||
|
Loading…
x
Reference in New Issue
Block a user