puzhibing
2024-03-07 228c40ba253e57a10abb435afb6889c8ed27ec55
cloud-server-communityWorldCup/src/main/resources/mapper/WorldCupCompetitorMapper.xml
@@ -199,4 +199,23 @@
            ) 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>