“mitao”
2025-12-23 9ff0db3f0cca9eab06d04a9773d725a1acc831d8
ruoyi-system/src/main/resources/mapper/system/TAppUserMapper.xml
@@ -116,4 +116,29 @@
        order by t1.create_time desc
    </select>
    <select id="userPromotionPageList" resultType="com.ruoyi.system.vo.UserPromotionPageListVo">
        select t1.id userId,t1.name userName,t1.phone phone,t1.gender,t1.profile_photo avatar,t1.user_type roleName,t1.status status
        from t_app_user t1
        where t1.referrer_user_id = #{query.userId} and t1.status !=3 and  t1.referrer_status =2
        <if test="query.userName != null and query.userName != ''">
            and t1.name like concat('%',#{query.userName},'%')
        </if>
        <if test="query.phone != null and query.phone != ''">
            and t1.phone like concat('%',#{query.phone},'%')
        </if>
        order by t1.create_time desc
    </select>
    <select id="userPromotionPageListExport" resultType="com.ruoyi.system.vo.UserPromotionPageListVo">
        select t1.id userId,t1.name userName,t1.phone phone,t1.gender,t1.profile_photo avatar,t1.user_type roleName,t1.status status
        from t_app_user t1
        where t1.referrer_user_id = #{query.userId} and t1.status !=3 and  t1.referrer_status =2
        <if test="query.userName != null and query.userName != ''">
            and t1.name like concat('%',#{query.userName},'%')
        </if>
        <if test="query.phone != null and query.phone != ''">
            and t1.phone like concat('%',#{query.phone},'%')
        </if>
        order by t1.create_time desc
    </select>
</mapper>