puzhibing
2024-03-06 8b0236862ba73252813234298aabaf5190085ba9
Merge branch '2.0' of http://120.76.84.145:10101/gitblit/r/java/PlayPai into 2.0
1个文件已修改
26 ■■■■■ 已修改文件
cloud-server-communityWorldCup/src/main/resources/mapper/WorldCupMapper.xml 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
cloud-server-communityWorldCup/src/main/resources/mapper/WorldCupMapper.xml
@@ -122,4 +122,30 @@
            and status= #{item.status}
        </if>
    </select>
    <select id="worldCupGameStatistics" resultType="map">
        select
        a.id,
        a.`name`,
        DATE_FORMAT(a.startTime, '%Y.%m.%d %H:%i') as startTime,
        DATE_FORMAT(a.endTime, '%Y.%m.%d %H:%i') as endTime,
        from t_world_cup a
        where 1 = 1
        <if test="null != item.name and '' != item.name">
            and a.`name` like CONCAT('%', #{item.name}, '%')
        </if>
        order by a.createTime desc limit #{item.offset}, #{item.limit}
    </select>
    <select id="worldCupGameStatisticsCount" resultType="int">
        select
        count(*)
        from t_world_cup a
        where 1 = 1
        <if test="null != item.name and '' != item.name">
            and a.`name` like CONCAT('%', #{item.name}, '%')
        </if>
    </select>
</mapper>