| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="org.dromara.business.mapper.HandHistoryMapper">
- <select id="selectAllHandHistory" resultType="org.dromara.business.domain.vo.HandHistoryVo">
- SELECT
- id,
- hand_id,
- tournament_id,
- involved_players,
- hand_number,
- board_cards,
- total_pot,
- hand_start_time,
- hand_end_time,
- hand_details,
- created_at
- FROM hand_history where tournament_id=#{tournamentId} AND id=#{historyId}
- </select>
- <select id="selectAllHandZhuoCi" resultType="org.dromara.business.domain.vo.HandHistoryVo">
- 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
- hh.*
- 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
- AND hh.table_id = #{tableId}
- ORDER BY
- hh.hand_number ASC
- </select>
- </mapper>
|