From a0e9fac251df54e5ed6159ce1fdb77d463ebdc48 Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期四, 26 六月 2025 20:05:35 +0800
Subject: [PATCH] 菌种库所有代码

---
 ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
index 0c39855..a780725 100644
--- a/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
+++ b/ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
@@ -265,9 +265,8 @@
 	<select id="choiceUserList" resultType="com.ruoyi.system.vo.ChoiceUserVO">
 		select * from sys_user
 
-		where status =  0 and del_flag = 0
-		  and roleType = #{query.roleType}
-		<if test="query.userIds != null and query.userIds()>0">
+		where status =  '0' and del_flag = '0'
+		<if test="query.userIds != null and query.userIds.size()>0">
 			AND user_id IN
 			<foreach collection="query.userIds" close=")" open="(" item="id" separator=",">
 				#{id}
@@ -278,7 +277,7 @@
 		select * from sys_user
 		where 1=1
 				<if test="userName != null and userName != ''">
-					OR nick_name LIKE concat('%', #{userName}, '%')
+					and nick_name LIKE concat('%', #{userName}, '%')
 				</if>
 
 	</select>
@@ -375,7 +374,7 @@
 	</update>
 
     <delete id="deleteUserById" parameterType="Long">
- 		update sys_user set del_flag = '2' where user_id = #{userId}
+ 		delete sys_user  where user_id = #{userId}
  	</delete>
  	
  	<delete id="deleteUserByIds" parameterType="Long">

--
Gitblit v1.7.1