| | |
| | | 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> |