Commit ca5ef5e3 by 朱亚洁

bug:[none]保存空页面

parent f73976be
......@@ -1257,6 +1257,8 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
Long resourcePageId = this.updateResourcePage(updateResourcePageVO);
//当前所有栏目
List<Long> originColumnIds = resourcePageColumnDao.getColumnIdsByPageId(resourcePageId);
//删除栏目资源
resourcePageItemDao.deleteByPageId(resourcePageId);
if (!ListUtils.isEmpty(updateResourcePageVO.getColumnVOS())) {
List<UpdateResourceColumnVO> list = updateResourcePageVO.getColumnVOS();
List<Long> columnIds = new ArrayList<>();
......@@ -1283,8 +1285,6 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
throw new BookBizException(BookBizException.PARAM_IS_NULL, "弹窗式公众号只能配置一个");
}
}
//栏目资源
resourcePageItemDao.deleteByPageId(resourcePageId);
for (UpdateResourceColumnVO columnVO : list) {
this.updateResourceColumn(columnVO);
}
......
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