cms栏目管理功能添加

dev
hechao.zhu 1 year ago
parent 447ff0f24a
commit 6ffdca2a22
  1. 16
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/cms/service/impl/CmsColumnServiceImpl.java

@ -127,22 +127,6 @@ public class CmsColumnServiceImpl extends ServiceImpl<CmsColumnMapper, CmsColumn
return sb.toString();
}
/**
* 根据所传pid查询旧的父级节点的子节点并修改相应状态值
*
* @param pid
*/
private void updateOldParentNode(String pid) {
if (!ICmsColumnService.ROOT_PID_VALUE.equals(pid)) {
Long count = baseMapper.selectCount(new QueryWrapper<CmsColumn>().eq("pid", pid));
if (count == null || count <= 1) {
// baseMapper.updateTreeNodeStatus(pid, ICmsColumnService.NOCHILD);
this.lambdaUpdate().set(CmsColumn::getPid, ICmsColumnService.NOCHILD)
.eq(CmsColumn::getPid, pid).update();
}
}
}
/**
* 递归查询节点的根节点
*

Loading…
Cancel
Save