Commit 4cc44f2e by guojuxing

是否是有人群筛选的页面判断修复

parent a202ff56
......@@ -133,7 +133,7 @@ public enum AppletPageTypeEnum {
if (pageType == null) {
return false;
}
if (AppletPageTypeEnum.INTEGRAL_SERVICE.getType() == pageType) {
if (AppletPageTypeEnum.INTEGRAL_SERVICE.getCode() == pageType) {
return true;
}
return false;
......
......@@ -95,6 +95,13 @@ public interface AppletCustomPageApiService {
ServiceResponse<Void> setSerialNumber(Integer pageId, Integer serialNumber);
/**
* 复制页面
* @param pageId
* @return
*/
ServiceResponse<Void> copyPage(Integer pageId);
/**
* 开启
* @Title: enable

* @Description:
......
......@@ -368,6 +368,23 @@ public class AppletCustomPageApiServiceImpl implements AppletCustomPageApiServic
}
@Override
public ServiceResponse<Void> copyPage(Integer pageId) {
TabAppletCustomPage record = exist(pageId);
TabAppletCustomPage copy = EntityUtil.changeEntityNew(TabAppletCustomPage.class, record);
//新增一个
copy.setPageId(null);
//未发布
copy.setStatus(2);
Integer newPageId = appletCustomPageService.save(copy);
//复制组件数据
List<TabAppletPageComponent> componentList = appletPageComponentService.listByPageId(pageId);
if (CollectionUtils.isNotEmpty(componentList)) {
}
return ServiceResponse.success();
}
@Override
public ServiceResponse<String> enable(Integer pageId) {
TabAppletCustomPage record = exist(pageId);
if (record.getStatus().intValue() == 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment