| | |
| | | <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} |
| | |
| | | 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> |
| | |
| | | </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"> |