|
|
@@ -23,9 +23,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
|
|
|
<select id="selectAllHandZhuoCi" resultType="org.dromara.business.domain.vo.HandHistoryVo">
|
|
|
- select * from hand_history where id in (
|
|
|
- select hand_history_id from player_hand_history where player_id=#{playerId}
|
|
|
- ) and tournament_id=#{tournamentId} ORDER BY created_at asc
|
|
|
+ SELECT hh.table_id
|
|
|
+ FROM hand_history hh
|
|
|
+ INNER JOIN player_hand_history phh ON hh.id = phh.hand_history_id
|
|
|
+ WHERE phh.player_id =#{playerId}
|
|
|
+ AND hh.tournament_id = #{tournamentId} AND hh.table_id!=0
|
|
|
+ GROUP BY hh.table_id
|
|
|
+ ORDER BY hh.table_id ASC
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <select id="selectAllHandNumber" resultType="org.dromara.business.domain.vo.HandHistoryVo">
|
|
|
+ select * from hand_history where table_id = #{tableId} and tournament_id=#{tournamentId}
|
|
|
+ ORDER BY created_at asc
|
|
|
</select>
|
|
|
|
|
|
|