From ec23ec3d3dc4ec1ba7d79ba4f46ae2c31d5a16a9 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 07 一月 2026 10:49:10 +0800
Subject: [PATCH] 【市一】调整mapper获取ordid
---
ruoyi-system/src/main/resources/mapper/system/BaseUserInfoMapper.xml | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/ruoyi-system/src/main/resources/mapper/system/BaseUserInfoMapper.xml b/ruoyi-system/src/main/resources/mapper/system/BaseUserInfoMapper.xml
index a642513..76209e2 100644
--- a/ruoyi-system/src/main/resources/mapper/system/BaseUserInfoMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/BaseUserInfoMapper.xml
@@ -76,7 +76,8 @@
<select id="selectBaseUserInfoList" parameterType="com.ruoyi.system.domain.BaseUserInfo"
resultMap="BaseUserInfoResult">
<include refid="selectBaseUserInfoVo"/>
- <where>
+ WHERE 1=1
+
<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,7 +94,7 @@
<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>
<if test="dwpermission != null ">and dwpermission = #{dwpermission}</if>
<if test="isopenlowerorg != null ">and isopenlowerorg = #{isopenlowerorg}</if>
@@ -104,7 +105,7 @@
<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>
- </where>
+
</select>
<select id="selectBaseUserInfoByUserid" parameterType="Long" resultMap="BaseUserInfoResult">
--
Gitblit v1.9.3