|
@@ -70,13 +70,13 @@
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="getBettingCount" resultType="java.util.Map">
|
|
|
|
|
|
+ <select id="getBettingCount" resultType="java.lang.Integer">
|
|
select
|
|
select
|
|
ifnull(count(1), 0) as bettingCount
|
|
ifnull(count(1), 0) as bettingCount
|
|
from app_game_betting where user_id = #{userId} and game_id = #{gameId} and game_date = #{gameDate}
|
|
from app_game_betting where user_id = #{userId} and game_id = #{gameId} and game_date = #{gameDate}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="getBettingAmount" resultType="java.util.Map">
|
|
|
|
|
|
+ <select id="getBettingAmount" resultType="java.math.BigDecimal">
|
|
select
|
|
select
|
|
ifnull(sum(betting_amount), 0.00) as bettingAmount
|
|
ifnull(sum(betting_amount), 0.00) as bettingAmount
|
|
from app_game_betting where user_id = #{userId} and game_id = #{gameId} and game_date = #{gameDate} and betting_item = #{bettingItem}
|
|
from app_game_betting where user_id = #{userId} and game_id = #{gameId} and game_date = #{gameDate} and betting_item = #{bettingItem}
|