无关风月
2025-02-27 19c35c58f8b767d7d9c57d0cf910fd091dc7669f
ManagementOKTravel/guns-admin/src/main/java/com/stylefeng/guns/modular/system/dao/mapping/TDriverMapper.xml
@@ -392,4 +392,19 @@
        )
        and id in (select driverId from t_driver_orders where `type` = #{type})
    </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>