随笔分类 -  无限极树结构

摘要:1.表设计 CREATE TABLE `party_examine_bank_type` ( `id` bigint(20) NOT NULL COMMENT '类型id', `ancestors` text COMMENT '祖级列表', `parent_id` bigint(20) DEFAUL 阅读全文
posted @ 2020-11-04 16:38 海代码 阅读(300) 评论(0) 推荐(0)
摘要:1.无限极新增节点 int maxChildRgtVal = orgParent.getRgtVal() - 1; //真理 if (orgParent.getChildNodeCount() != 0) {//如果有子节点,获取子节点最大的右值 org.setLftVal(maxChildRgtV 阅读全文
posted @ 2020-04-01 17:03 海代码 阅读(581) 评论(0) 推荐(0)