From 6bdff06fadea15ab3b4e70c25a7cb4c73e5a64fc Mon Sep 17 00:00:00 2001
From: mitao <2763622819@qq.com>
Date: 星期一, 15 九月 2025 20:31:31 +0800
Subject: [PATCH] 资产管理-仓库管理接口 资产管理-资产类型接口

---
 ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
index cf439f6..bcf65cd 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -86,7 +86,22 @@
 	    <include refid="selectDeptVo"/>
 		where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1
 	</select>
-    
+
+    <select id="selectByIds" resultType="com.ruoyi.common.core.domain.entity.SysDept"
+            parameterType="java.util.List">
+		select * from sys_dept
+		<where>
+			del_flag = '0'
+			<if test="deptIds !=null and deptIds.size() != 0">
+				and dept_id in
+				<foreach collection="deptIds" item="item" open="(" separator="," close=")">
+					#{item}
+				</foreach>
+			</if>
+		</where>
+		order by id desc
+	</select>
+
     <insert id="insertDept" parameterType="SysDept">
  		insert into sys_dept(
  			<if test="deptId != null and deptId != 0">dept_id,</if>

--
Gitblit v1.7.1