无关风月
2025-02-25 cc175f25cbd953fc2c3623495c1f4b8e0efec4ee
ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/TUserMapper.xml
@@ -115,6 +115,21 @@
        </where>
        order by o.id desc
    </select>
    <select id="inviteList" resultType="java.util.Map">
        select t1.*,t2.phone,t2.avatar,t2.nickName 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="inviteName != null and inviteName != ''">
            and t2.nickName  LIKE CONCAT('%',#{inviteName},'%')
        </if>
        <if test="null != startTime and null != endTime">
            and t1.registerTime between #{startTime} and #{endTime}
        </if>
        order by t1.registerTime desc
    </select>
</mapper>