From 987e38327f849e1b13d8541246dde08d877db0e8 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 07 一月 2026 14:10:43 +0800
Subject: [PATCH] 【市一】调整mapper获取ordid

---
 ruoyi-system/src/main/resources/mapper/system/BaseUserInfoMapper.xml |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/BaseUserInfoMapper.xml b/ruoyi-system/src/main/resources/mapper/system/BaseUserInfoMapper.xml
index 76209e2..05a042e 100644
--- a/ruoyi-system/src/main/resources/mapper/system/BaseUserInfoMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/BaseUserInfoMapper.xml
@@ -77,7 +77,7 @@
             resultMap="BaseUserInfoResult">
         <include refid="selectBaseUserInfoVo"/>
         WHERE 1=1
-
+            <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
             <if test="usercode != null  and usercode != ''">and usercode = #{usercode}</if>
             <if test="account != null  and account != ''">and account = #{account}</if>
             <if test="guid != null  and guid != ''">and guid = #{guid}</if>
@@ -93,19 +93,17 @@
             <if test="wardid != null  and wardid != ''">and wardid = #{wardid}</if>
             <if test="wardname != null  and wardname != ''">and wardname like concat('%', #{wardname}, '%')</if>
             <if test="usertype != null ">and usertype = #{usertype}</if>
-            <if test="usertypename != null  and usertypename != ''">and usertypename like concat('%', #{usertypename},
-                AND '%')
+            <if test="usertypename != null  and usertypename != ''">
+                and usertypename like concat('%', #{usertypename},'%')
             </if>
             <if test="dwpermission != null ">and dwpermission = #{dwpermission}</if>
             <if test="isopenlowerorg != null ">and isopenlowerorg = #{isopenlowerorg}</if>
             <if test="isopenshareknow != null ">and isopenshareknow = #{isopenshareknow}</if>
             <if test="isopengeneraldata != null ">and isopengeneraldata = #{isopengeneraldata}</if>
-            <if test="orgid != null  and orgid != ''">and orgid = #{orgid}</if>
             <if test="isupload != null ">and isupload = #{isupload}</if>
             <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
             <if test="deptpermission != null  and deptpermission != ''">and deptpermission = #{deptpermission}</if>
             <if test="wardpermission != null  and wardpermission != ''">and wardpermission = #{wardpermission}</if>
-        
     </select>
 
     <select id="selectBaseUserInfoByUserid" parameterType="Long" resultMap="BaseUserInfoResult">

--
Gitblit v1.9.3