From 4ecf2dbe2c255c3b556ff4bfb49b4e2e8285bd17 Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Tue, 31 Aug 2021 11:24:45 +0800
Subject: [PATCH] 1.ftp

---
 src/main/java/org/springblade/modules/system/mapper/DeptMapper.java |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/system/mapper/DeptMapper.java b/src/main/java/org/springblade/modules/system/mapper/DeptMapper.java
index 00b950c..fc9df70 100644
--- a/src/main/java/org/springblade/modules/system/mapper/DeptMapper.java
+++ b/src/main/java/org/springblade/modules/system/mapper/DeptMapper.java
@@ -18,7 +18,10 @@
 
 import com.baomidou.mybatisplus.annotation.SqlParser;
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import org.apache.ibatis.annotations.MapKey;
+import org.apache.ibatis.annotations.Param;
 import org.springblade.modules.system.entity.Dept;
+import org.springblade.modules.system.node.TreeNodes;
 import org.springblade.modules.system.vo.DeptVO;
 
 import java.util.List;
@@ -92,4 +95,33 @@
 	 */
 	@SqlParser(filter=true)
 	List<DeptVO> lazyTreeUser(String tenantId, Long parentId);
+
+	/**
+	 * 懒加载获取部门树形结构(包含用户数据),只查下一级的数据
+	 * @return
+	 */
+	@MapKey(value = "id")
+	@SqlParser(filter=true)
+	Map<Long, TreeNodes> lazyTreeUsers(@Param("type") Integer type,
+									   @Param("deptId") Long deptId,
+									   @Param("jurisdiction")String jurisdiction);
+
+	/**
+	 * 懒加载获取部门树形结构(包含用户数据),只查下一级的数据
+	 * @return
+	 */
+	@MapKey(value = "id")
+	@SqlParser(filter=true)
+	Map<Long, TreeNodes> lazyTreeUsersPublicSecurity(@Param("type") Integer type,
+													 @Param("deptId") Long deptId,
+													 @Param("jurisdiction")String jurisdiction);
+	/**
+	 * 懒加载获取部门树形结构(包含用户数据),只查下一级的数据
+	 * @return
+	 */
+	@MapKey(value = "id")
+	@SqlParser(filter=true)
+	Map<Long, TreeNodes> lazyTreeUsersPublicSecuritys(@Param("type") Integer type,
+													  @Param("deptId") Long deptId,
+													  @Param("jurisdiction")String jurisdiction);
 }

--
Gitblit v1.9.3