From 850f3d794605d60e30fa0c2ae1248eb1a7dc518d Mon Sep 17 00:00:00 2001 From: zhangye <654600784@qq.com> Date: Mon, 16 Mar 2026 10:53:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/dao/PmsPatientDao.xml | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ruisi_java/ruisi-web-client/src/main/resources/mapper/dao/PmsPatientDao.xml b/ruisi_java/ruisi-web-client/src/main/resources/mapper/dao/PmsPatientDao.xml index 95d5528..f4c38e1 100644 --- a/ruisi_java/ruisi-web-client/src/main/resources/mapper/dao/PmsPatientDao.xml +++ b/ruisi_java/ruisi-web-client/src/main/resources/mapper/dao/PmsPatientDao.xml @@ -133,18 +133,18 @@ AND ( EXISTS ( - SELECT 1 FROM ums_user WHERE user_id = #{userId} AND data_power = 'ALL' + SELECT 1 FROM ums_user WHERE user_id = #{userId} AND data_power = 'ALL' ) OR - ( - FIND_IN_SET(ud.dept_code, - (SELECT - CONCAT( d.dept_code, ',', u.data_power ) - FROM - ums_user u LEFT JOIN ums_dept d on u.dept_id = d.dept_id and d.del_flag = 0 - WHERE - u.user_id = #{userId}) - ) + ( + FIND_IN_SET(ud.dept_code, + (SELECT + CONCAT( d.dept_code, ',', u.data_power ) + FROM + ums_user u LEFT JOIN ums_dept d on u.dept_id = d.dept_id and d.del_flag = 0 + WHERE + u.user_id = #{userId}) + ) ) GROUP BY pp.id