| | |
| | | public List<DeptVO> lazyTreeJurisdiction(String jurisdiction, Long parentId) { |
| | | return ForestNodeMerger.merge(baseMapper.lazyTreeJurisdiction(jurisdiction,parentId)); |
| | | } |
| | | |
| | | /** |
| | | * 懒加载获取单位树,电子围栏用 |
| | | * @param type 1:本单位 2:分公司 3:服务单位 |
| | | * @param deptId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<DeptVO> lazyTreeRail(Integer type, Long deptId) { |
| | | //查询本单位 |
| | | if(type==1 || type==2){ |
| | | return ForestNodeMerger.merge(baseMapper.securityDeptUnitList(null,deptId)); |
| | | } |
| | | return ForestNodeMerger.merge(baseMapper.getDispatchUnitList(deptId)); |
| | | } |
| | | } |