Pu Zhibing
2025-05-09 8580866e175ad0050ee9c5ea3f757856fc242c39
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.stylefeng.guns.modular.system.dao.InviteMapper">
 
 
    <select id="inviteList" resultType="com.stylefeng.guns.modular.system.model.Invite">
        select t1.*,t2.phone,t2.avatar from t_invite t1
        left join t_user t2 on t2.id = t1.userId
        where 1=1
        <if test="null != uid">
            and t1.inviteUserId = #{uid}
        </if>
        <if test="null != startTime and '' != startTime">
            and t1.registerTime between #{startTime} and #{endTime}
        </if>
        and t1.userType = 1
        order by t1.registerTime desc
        limit #{pageNum}, #{size}
    </select>
</mapper>