| | |
| | | </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> |