|
@@ -38,7 +38,7 @@
|
|
sum(betting_amount) as orderAmount,
|
|
sum(betting_amount) as orderAmount,
|
|
sum(case when is_winning = 1 then (betting_amount * betting_multiple) else 0.00 end) as winAmount,
|
|
sum(case when is_winning = 1 then (betting_amount * betting_multiple) else 0.00 end) as winAmount,
|
|
sum(case when is_winning = 2 then (betting_amount) else 0.00 end) as loseAmount
|
|
sum(case when is_winning = 2 then (betting_amount) else 0.00 end) as loseAmount
|
|
- from app_game_betting where game_id = #{gameId} game_date = #{gameDate}
|
|
+ from app_game_betting where game_id = #{gameId} and game_date = #{gameDate}
|
|
and user_id = #{userId} and betting_type = #{bettingType} and betting_game_type = 0
|
|
and user_id = #{userId} and betting_type = #{bettingType} and betting_game_type = 0
|
|
group by betting_item
|
|
group by betting_item
|
|
</select>
|
|
</select>
|