| | |
| | | a.create_time, |
| | | a.status, |
| | | b.return_ratio, |
| | | c.phone telphone, |
| | | c.email, |
| | | a.mobile telphone, |
| | | c.referer_id refererId, |
| | | c.certify_status |
| | | from t_user a |
| | |
| | | <if test="record.refererId!=null and record.refererId!=''"> |
| | | find_in_set(#{record.refererId}, b.referer_ids) |
| | | </if> |
| | | <if test="record.startTime!=null and record.startTime!=''"> |
| | | and c.create_time >=#{record.startTime} |
| | | </if> |
| | | <if test="record.endTime!=null and record.endTime!=''"> |
| | | and #{record.endTime} >= c.create_time |
| | | </if> |
| | | <if test="record.account!=null and record.account!=''"> |
| | | and (c.phone = #{record.account} or c.email = #{record.account} or c.invite_id=#{record.account}) |
| | | </if> |
| | | <if test="record.accountStatus != null and record.accountStatus!=''" > |
| | | and a.status = #{record.accountStatus} |
| | | </if> |
| | | <if test="record.accountType != null and record.accountType!=''" > |
| | | and c.account_type = #{record.accountType} |
| | | </if> |
| | | <if test="record.certifyStatus!=null and record.certifyStatus!=''and record.certifyStatus!='6' "> |
| | | and c.certify_status = #{record.certifyStatus} |
| | | </if> |
| | | </where> |
| | | </if> |
| | | </select> |
| | |
| | | <select id="selectUserByInviteId" resultType="user"> |
| | | select * from t_user where invite_id=#{inviteId} |
| | | </select> |
| | | |
| | | <select id="selectUserInfoById" resultType="user"> |
| | | select |
| | | a.user_id, |
| | | a.agent_name, |
| | | a.username, |
| | | a.mobile, |
| | | a.invite_id, |
| | | b.return_ratio |
| | | from t_user a |
| | | left join agent_friend_relation b on a.user_id=b.user_id |
| | | where a.user_id=#{id} |
| | | </select> |
| | | </mapper> |