linwe
2023-12-21 224e0bbfc8d24785fea2e0160c36d7a8f6cd7269
src/main/java/org/springblade/modules/system/mapper/UserMapper.xml
@@ -29,6 +29,7 @@
    <select id="selectUserPage" resultMap="userResultMap">
        select * from blade_user where is_deleted = 0
        and id != 1123598821738675201
        <if test="tenantId!=null and tenantId != ''">
            and tenant_id = #{tenantId}
        </if>
@@ -73,4 +74,13 @@
        SELECT id, tenant_id, user_type, account, name, real_name, email, phone, birthday, role_id, dept_id, post_id FROM blade_user ${ew.customSqlSegment}
    </select>
    <!--按条件查询用户信息-->
    <select id="getUserListByParam" resultType="org.springblade.modules.system.vo.UserVO">
        SELECT id, account, name, real_name, phone, role_id, dept_id, post_id FROM blade_user
        where is_deleted = 0
        <if test="user.roleId!=null and user.roleId!=''">
            and role_id like concat('%',#{user.roleId},'%')
        </if>
    </select>
</mapper>