insert into product values(9990008,'军事类',null); insert into product values(9990009,'军事1',9990008); insert into product values( 9990009 ,'军事2',9990008); insert into product values(9990010,'军事1-1-1',9990009); 。。。。 ........
------解决方案--------------------
------解决方案--------------------
忘记贴递归了: /** * @param PostCode * 根据父节点获取所有子节点岗位编号 * @return 树的子结点集合 */ @SuppressWarnings("unchecked") public List<JobType> getPostCodeChilds(String postCode) { List<JobType> ret = new ArrayList<JobType>(); List<JobType> retRecursive = null; List<JobType> children = getChildrenNodes(postCode);