select count(*) as totalMembers, sum(score) as totalScore, AVG(score) as averageTimes from t_game_user_join where record_id = #{recordId,jdbcType=BIGINT}
select count(*) as totalMembers, sum(score) as totalScore, AVG(score) as averageTimes from t_game_user_join where record_id = #{recordId,jdbcType=BIGINT} and rec_status = 0
</select>
<selectid="overNum"resultType="Integer">
select count(*) from t_game_user_join where record_id = #{recordId,jdbcType=BIGINT} and score < #{score,jdbcType=INTEGER}
select count(*) from t_game_user_join where record_id = #{recordId,jdbcType=BIGINT} and score < #{score,jdbcType=INTEGER} and rec_status = 0