From fbc21cce86582464cc0f65e80862e54dbd034baa Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期四, 01 八月 2024 18:22:11 +0800
Subject: [PATCH] 数据中心部分接口定义
---
ycl-server/src/main/resources/mapper/system/SysDeptMapper.xml | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/ycl-server/src/main/resources/mapper/system/SysDeptMapper.xml b/ycl-server/src/main/resources/mapper/system/SysDeptMapper.xml
index 876e4e0..18a67f9 100644
--- a/ycl-server/src/main/resources/mapper/system/SysDeptMapper.xml
+++ b/ycl-server/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -79,6 +79,11 @@
select * from sys_dept where find_in_set(#{deptId}, ancestors)
</select>
+ <select id="selectByParentId" resultType="java.lang.Integer">
+ select dept_id from sys_dept
+ where del_flag = 0 and parent_id = #{id}
+ </select>
+
<select id="selectNormalChildrenDeptById" parameterType="Long" resultType="int">
select count(*) from sys_dept where status = '0' and del_flag = 0 and find_in_set(#{deptId}, ancestors)
</select>
--
Gitblit v1.8.0