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