|
|
|
@ -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(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 递归查询节点的根节点 |
|
|
|
|
* |
|
|
|
|