zrj
2024-07-03 0b1e9e70818f0e3eb32dd6c029d42d93236ecdc6
src/main/java/org/springblade/modules/system/controller/DeptController.java
@@ -39,6 +39,7 @@
import org.springblade.core.tool.utils.Func;
import org.springblade.modules.system.entity.Dept;
import org.springblade.modules.system.entity.User;
import org.springblade.modules.system.node.DeptUserTreeNode;
import org.springblade.modules.system.service.IDeptService;
import org.springblade.modules.system.vo.DeptVO;
import org.springblade.modules.system.wrapper.DeptWrapper;
@@ -190,5 +191,51 @@
      return R.data(list);
   }
   /**
    * 数据处理(社区绑定)
    */
   @GetMapping("/dataHandle")
   public R dataHandle() {
      return R.data(deptService.dataHandle());
   }
   /**
    * 数据处理(社区绑定)-- 处理社区
    */
   @GetMapping("/dataHandleCommunity")
   public R dataHandleCommunity() {
      return R.data(deptService.dataHandleCommunity());
   }
   /**
    * 数据处理(区域网格编号绑定)
    */
   @GetMapping("/dataRegionGridCodeBindHandle")
   public R dataRegionGridCodeBindHandle() {
      return R.data(deptService.dataRegionGridCodeBindHandle());
   }
   /**
    * 查询组织机构树数据(下级包含人员信息)(数据量太大,不建议使用)
    * @param treeNode
    * @return
    */
   @GetMapping("/getDeptAndUserTree")
   @ApiOperation(value = "查询组织机构树数据(下级包含人员信息)")
   public R getDeptAndUserTree(DeptUserTreeNode treeNode) {
      return R.data(deptService.getDeptAndUserTree(treeNode));
   }
   /**
    * 数据处理(社区绑定)-- 处理社区(派出所下)
    */
   @GetMapping("/dataHandleCommunityByPolice")
   public R dataHandleCommunityByPolice() {
      return R.data(deptService.dataHandleCommunityByPolice());
   }
}