SELECT user_id,account,avatar,nick,country,email,phone from tb_cf_user_info u inner join (select network_info_user_id from network where user_info_user_id=#{userId}) temp on u.user_id=temp.network_info_user_id
</select>
<!--查看用户的下线人数-->
<selectid="getUserNetworkCount"resultType="int">
select count(1) from network where user_info_user_id=#{userId}
</select>
<!--查看用户的佣金-->
<selectid="getUserBonus"resultType="decimal">
SELECT IFNULL(TRUNCATE(sum(amount),3),0) from bonus where user_info_user_id=#{userId}