puzhibing
2024-03-06 d3ca5fbb31fd0d52be2099e1be9a2f1b245686c6
添加方法
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>