智慧保安后台管理-外网项目备份
zhongrj
2023-09-17 8853292babb2ad94de4a3207966f1e83b767cd2d
src/main/java/org/springblade/modules/system/service/impl/DeptServiceImpl.java
@@ -375,4 +375,19 @@
   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));
   }
}