puzhibing
2024-03-07 a8bfc865c10c1ad75322510c1901edd8a46b12de
合并代码
1个文件已修改
12 ■■■■ 已修改文件
cloud-server-communityWorldCup/src/main/resources/mapper/WorldCupCompetitorMapper.xml 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cloud-server-communityWorldCup/src/main/resources/mapper/WorldCupCompetitorMapper.xml
@@ -178,7 +178,11 @@
                appUserId,
                count(*) as num
                from t_world_cup_competitor
                where worldCupId = #{worldCupId} group by participantType, participantId, appUserId
                where 1 = 1
                <if test="null != worldCupId">
                    and worldCupId = #{worldCupId}
                </if>
                group by participantType, participantId, appUserId
            ) as a
            left join (
                select
@@ -187,7 +191,11 @@
                appUserId,
                count(*) as num
                from t_world_cup_competitor
                where matchResult = 1 and worldCupId = #{worldCupId} group by participantType, participantId, appUserId
                where matchResult = 1
                <if test="null != worldCupId">
                    and worldCupId = #{worldCupId}
                </if>
                group by participantType, participantId, appUserId
            ) as b on (a.participantId = b.participantId and a.participantType = b.participantType)
        ) as aa order by aa.totalSession desc
    </select>