xin
2025-06-24 dd903075c90a6b7a5c0842e9cf15d98120e4308d
oying-system/src/main/resources/mapper/system/UserMapper.xml
@@ -49,13 +49,19 @@
        r.role_id as role_id, r.name as role_name, r.level as role_level, r.data_scope as role_data_scope
    </sql>
    <sql id="Whrer_Sql">
    <sql id="Where_Sql">
        <where>
            <if test="criteria.id != null">
                and u.user_id = #{criteria.id}
            </if>
            <if test="criteria.enabled != null">
                and u.enabled = #{criteria.enabled}
            </if>
            <if test="criteria.userTypes != null and criteria.userTypes.size() != 0">
                and u.user_type in
                <foreach collection="criteria.userTypes" item="userType" open="(" separator="," close=")">
                    #{userType}
                </foreach>
            </if>
            <if test="criteria.blurry != null and criteria.blurry != ''">
                and (
@@ -78,7 +84,7 @@
        select
        <include refid="Base_Column_List"/>
        from sys_user u
        <include refid="Whrer_Sql"/>
        <include refid="Where_Sql"/>
        order by u.user_id desc
        <if test="criteria.offset != null">
            limit #{criteria.offset}, #{criteria.size}
@@ -94,7 +100,7 @@
    <select id="countAll" resultType="java.lang.Long">
        select count(*)
        from sys_user u
        <include refid="Whrer_Sql"/>
        <include refid="Where_Sql"/>
    </select>
    <select id="findByUsername" resultMap="BaseResultMap">