|  |  | 
 |  |  |  | 
 |  |  |     public List<TyProductModel> getAllTree() { | 
 |  |  |             List<TyProductModel> productList = baseDao.selectList(new QueryWrapper<TyProductModel>().eq(Constant.TableColumn.IS_DELETE, | 
 |  |  |                     Constant.Bool.NO).orderByAsc(Constant.TableColumn.SORT)); | 
 |  |  |                     Constant.Bool.NO).orderByAsc("node_type").orderByAsc(Constant.TableColumn.SORT)); | 
 |  |  |             return TreeUtils.build(productList); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public Integer getNo(Long pid) { | 
 |  |  |         if (baseDao.getNo(pid) == null){ | 
 |  |  |     public Integer getNo(Long pid, String nodeType) { | 
 |  |  |         if (baseDao.getNo(pid,nodeType) == null){ | 
 |  |  |             return 0; | 
 |  |  |         } | 
 |  |  |         return baseDao.getNo(pid); | 
 |  |  |         return baseDao.getNo(pid,nodeType); | 
 |  |  |     } | 
 |  |  | } |