| | |
| | | ) as b on (a.participantId = b.participantId and a.participantType = b.participantType) |
| | | ) as aa order by aa.totalSession desc |
| | | </select> |
| | | |
| | | <select id="userGameRecordList" resultType="map"> |
| | | select |
| | | participantType, |
| | | participantId, |
| | | appUserId, |
| | | DATE_FORMAT(a.startTime, '%Y-%m-%d %H:%i') as startTime, |
| | | ourScore, |
| | | opponentScore, |
| | | matchResult, |
| | | b.`name` |
| | | from t_world_cup_competitor a |
| | | left join t_world_cup b on (a.worldCupId = b.id) |
| | | where 1 = 1 |
| | | <if test="null != name and '' != name"> |
| | | and b.name like CONCAT('%', #{name}, '%') |
| | | </if> |
| | | order by a.startTime desc |
| | | </select> |
| | | </mapper> |