<select id="getPlayerNotes" parameterClass="java.util.Map" resultClass="PlayerGameRecord">
select CREATE_TIME as createTime,PLAYER_INDEX as playerIndex,GAME_TYPE_ID as gameTypeId,SURPLUS_GOLD as surplusGold from $tableName$
WHERE DATE_FORMAT(CREATE_TIME,'%Y%m%d') = #date#
<isNotNull property="startTime" prepend="AND">
<![CDATA[ CREATE_TIME >= #startTime# ]]>
</isNotNull>
<isNotNull property="playerIndex" prepend="AND">
<![CDATA[ PLAYER_INDEX = #playerIndex# ]]>
</isNotNull>
<isNotNull property="gameTypeId" prepend="AND">
<![CDATA[ GAME_TYPE_ID = #gameTypeId# ]]>
</isNotNull>
order by create_time ASC LIMIT 1
</select>
<select id="getPlayerCoreProtect" parameterClass="java.util.Map" resultClass="PlayerGameRecord">
select CREATE_TIME as createTime,PLAYER_INDEX as playerIndex,GAME_TYPE_ID as gameTypeId,SURPLUS_GOLD as surplusGold from $tableName$
WHERE DATE_FORMAT(CREATE_TIME,'%Y%m%d') = #date#
<isNotNull property="startTime" prepend="AND">
<![CDATA[ CREATE_TIME >= #startTime# ]]>
</isNotNull>
<isNotNull property="playerIndex" prepend="AND">
<![CDATA[ PLAYER_INDEX = #playerIndex# ]]>
</isNotNull>
<isNotNull property="gameTypeId" prepend="AND">
<![CDATA[ GAME_TYPE_ID = #gameTypeId# ]]>
</isNotNull>
order by create_time desc LIMIT 1
</select>