From b5960d1968e007b91d4d33dd7cbb74f1b566f2c1 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Fri, 24 May 2024 10:20:01 +0800
Subject: [PATCH] 到期时间修改
---
src/main/java/org/springblade/modules/system/mapper/DeptMapper.java | 66 +++++++++++++++++++++++++++++++++
1 files changed, 66 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 bbcb7e6..04f273f 100644
--- a/src/main/java/org/springblade/modules/system/mapper/DeptMapper.java
+++ b/src/main/java/org/springblade/modules/system/mapper/DeptMapper.java
@@ -16,8 +16,12 @@
*/
package org.springblade.modules.system.mapper;
+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;
@@ -58,6 +62,13 @@
List<DeptVO> lazyTree(String tenantId, Long parentId);
/**
+ * 懒加载获取树形节点
+ *
+ * @return
+ */
+ List<DeptVO> lazyTrees();
+
+ /**
* 获取部门名
*
* @param ids
@@ -65,4 +76,59 @@
*/
List<String> getDeptNames(Long[] ids);
+ /**
+ * 分局树状信息
+ * @return
+ */
+ List<String> selectIn();
+ List<Map<Object,String>> selectCount();
+ List<Map<Object,String>> selectId(String id);
+ List<Map<String, Object>> selectHold(String deptid);
+ /**
+ * 懒加载获取部门树形结构,不包含顶级管理员公安局
+ */
+ List<DeptVO> securityLazyTree(String jurisdiction, Long parentId);
+
+ /**
+ * 懒加载获取部门树形结构(包含用户数据)
+ * @return
+ */
+ @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);
+
+ /**
+ * 查询所有的保安公司机构信息
+ * @return
+ */
+ List<DeptVO> securityDeptUnitList(@Param("parentId")Long parentId,
+ @Param("deptId")Long deptId);
}
--
Gitblit v1.9.3