From 529ff531c27c117b0ff80294557c6964da4d0b04 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 16 九月 2025 17:22:00 +0800
Subject: [PATCH] 门诊回诊,取消该患者住院随访功能删除
---
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
index c13724f..f975fe8 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -77,9 +77,12 @@
<if test="hisParentId != null and hisParentId != ''">
AND his_parent_id = #{hisParentId}
</if>
+ <if test="orgid != null and orgid != ''">
+ AND orgid = #{orgid}
+ </if>
<!-- 鏁版嵁鑼冨洿杩囨护 -->
${params.dataScope}
- order by d.parent_id, d.order_num
+ order by d.dept_type asc, d.parent_id, d.order_num
</select>
<select id="selectDeptListByRoleId" resultType="Long">
@@ -107,7 +110,7 @@
d.email,
d.status,
d.his_dept_id,
- d.his_parent_id
+ d.his_parent_id,
(select dept_name from sys_dept where dept_id = d.parent_id) parent_name
from sys_dept d
where d.dept_id = #{deptId}
--
Gitblit v1.9.3