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