puzhibing
2024-03-11 334fbd5f1a5a4e85c198560bd024211ba4cf99b1
cloud-server-communityWorldCup/src/main/resources/mapper/WorldCupCompetitorMapper.xml
@@ -64,7 +64,7 @@
                appUserId,
                count(*) as num
                from t_world_cup_competitor
                where 1 = 1
                where matchResult is not null
                <if test="null != item.year">
                    and DATE_FORMAT(startTime, '%Y') = #{item.year}
                </if>
@@ -83,7 +83,7 @@
                appUserId,
                count(*) as num
                from t_world_cup_competitor
                where matchResult = 1
                where matchResult != -1
                <if test="null != item.year">
                    and DATE_FORMAT(startTime, '%Y') = #{item.year}
                </if>
@@ -122,7 +122,7 @@
                    appUserId,
                    count(*) as num
                    from t_world_cup_competitor
                    where 1 = 1
                    where matchResult is not null
                    <if test="null != appUserIds and appUserIds.size() > 0">
                        and appUserId in
                        <foreach collection="appUserIds" item="iten" index="index" open="(" separator="," close=")">
@@ -138,7 +138,7 @@
                    appUserId,
                    count(*) as num
                    from t_world_cup_competitor
                    where matchResult = 1
                    where matchResult != -1
                    <if test="null != appUserIds and appUserIds.size() > 0">
                        and appUserId in
                        <foreach collection="appUserIds" item="iten" index="index" open="(" separator="," close=")">
@@ -159,7 +159,7 @@
            participantId,
            appUserId
            from t_world_cup_competitor
            where 1 = 1
            where matchResult is not null
            <if test="null != appUserIds and appUserIds.size() > 0">
                and appUserId in
                <foreach collection="appUserIds" item="iten" index="index" open="(" separator="," close=")">
@@ -195,7 +195,7 @@
                appUserId,
                count(*) as num
                from t_world_cup_competitor
                where 1 = 1
                where matchResult is not null
                <if test="null != worldCupId">
                    and worldCupId = #{worldCupId}
                </if>
@@ -208,7 +208,7 @@
                appUserId,
                count(*) as num
                from t_world_cup_competitor
                where matchResult = 1
                where matchResult != -1
                <if test="null != worldCupId">
                    and worldCupId = #{worldCupId}
                </if>
@@ -229,7 +229,7 @@
        b.`name`
        from t_world_cup_competitor a
        left join t_world_cup b on (a.worldCupId = b.id)
        where 1 = 1
        where matchResult is not null
        <if test="null != name and '' != name">
            and b.name like CONCAT('%', #{name}, '%')
        </if>
@@ -253,7 +253,7 @@
            appUserId,
            count(*) as num
            from t_world_cup_competitor
            where 1 = 1
            where matchResult is not null
            <if test="null != participantType">
                and participantType = #{participantType}
            </if>
@@ -269,7 +269,7 @@
            appUserId,
            count(*) as num
            from t_world_cup_competitor
            where matchResult = 1
            where matchResult != -1
            <if test="null != participantType">
                and participantType = #{participantType}
            </if>