From f873a34f9a8ba5788d7c2903c0b94afb86498788 Mon Sep 17 00:00:00 2001
From: cgl <361946749@qq.com>
Date: Thu, 29 Jan 2026 17:07:57 +0800
Subject: [PATCH] =?UTF-8?q?fix=20=E9=83=A8=E9=97=A8=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=83=A8=E9=97=A8=E5=90=8D=E7=A7=B0=E5=BC=82?=
=?UTF-8?q?=E5=B8=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ruoyi/system/mapper/SysDeptMapper.java | 28 ++++++++---------
.../resources/mapper/system/SysDeptMapper.xml | 30 +++++++++----------
2 files changed, 29 insertions(+), 29 deletions(-)
diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java
index 92514f27f..4e2a7e0cf 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java
@@ -6,14 +6,14 @@ import com.ruoyi.common.core.domain.entity.SysDept;
/**
* 部门管理 数据层
- *
+ *
* @author ruoyi
*/
public interface SysDeptMapper
{
/**
* 查询下级部门数量
- *
+ *
* @param dept 部门信息
* @return 结果
*/
@@ -21,7 +21,7 @@ public interface SysDeptMapper
/**
* 查询部门是否存在用户
- *
+ *
* @param deptId 部门ID
* @return 结果
*/
@@ -29,7 +29,7 @@ public interface SysDeptMapper
/**
* 查询部门管理数据
- *
+ *
* @param dept 部门信息
* @return 部门信息集合
*/
@@ -37,7 +37,7 @@ public interface SysDeptMapper
/**
* 删除部门管理信息
- *
+ *
* @param deptId 部门ID
* @return 结果
*/
@@ -45,7 +45,7 @@ public interface SysDeptMapper
/**
* 新增部门信息
- *
+ *
* @param dept 部门信息
* @return 结果
*/
@@ -53,7 +53,7 @@ public interface SysDeptMapper
/**
* 修改部门信息
- *
+ *
* @param dept 部门信息
* @return 结果
*/
@@ -61,7 +61,7 @@ public interface SysDeptMapper
/**
* 修改子元素关系
- *
+ *
* @param depts 子元素
* @return 结果
*/
@@ -69,7 +69,7 @@ public interface SysDeptMapper
/**
* 根据部门ID查询信息
- *
+ *
* @param deptId 部门ID
* @return 部门信息
*/
@@ -77,7 +77,7 @@ public interface SysDeptMapper
/**
* 校验部门名称是否唯一
- *
+ *
* @param deptName 部门名称
* @param parentId 父部门ID
* @return 结果
@@ -94,14 +94,14 @@ public interface SysDeptMapper
/**
* 修改所在部门正常状态
- *
+ *
* @param deptIds 部门ID组
*/
- public void updateDeptStatusNormal(Long[] deptIds);
+ public void updateDeptStatusNormal(@Param("deptIds") Long[] deptIds);
/**
* 根据ID查询所有子部门
- *
+ *
* @param deptId 部门ID
* @return 部门列表
*/
@@ -109,7 +109,7 @@ public interface SysDeptMapper
/**
* 根据ID查询所有子部门(正常状态)
- *
+ *
* @param deptId 部门ID
* @return 子部门数
*/
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
index fd3e64eec..45387f0ab 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -21,12 +21,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
-
+
- select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time
+ select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time
from sys_dept d
-
+
-
+
-
+
-
+
-
+