xiaoyong931011
2021-04-23 d4488a987cccd3ddd51a202a9f8aa71d3cdcbced
src/main/resources/mapper/system/UserMapper.xml
@@ -177,6 +177,7 @@
            b.return_ratio,
            a.mobile telphone,
            c.referer_id refererId,
            c.account_status accountStatus,
            c.certify_status
        from t_user a
        inner join agent_friend_relation b on a.user_id = b.user_id
@@ -187,16 +188,16 @@
                    find_in_set(#{record.refererId}, b.referer_ids)
                </if>
                <if test="record.startTime!=null and record.startTime!=''">
                    and c.create_time >=#{record.startTime}
                    and c.create_time >= #{record.startDate}
                </if>
                <if test="record.endTime!=null and record.endTime!=''">
                    and #{record.endTime} >= c.create_time
                    and #{record.endDate} >= 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 test="record.accountStatus != null and record.accountStatus!=''  or record.accountStatus == 0" >
                    and c.account_status = #{record.accountStatus}
                </if>
                <if test="record.accountType != null and record.accountType!=''" >
                    and c.account_type = #{record.accountType}