| | |
| | | and a.name like CONCAT('%', #{item.content}, '%') |
| | | </if> |
| | | <if test="null != item.storeId"> |
| | | and a.worldCupId in (select worldCupId from t_world_cup_store where storeId = #{item.storeId}) |
| | | and a.id in (select worldCupId from t_world_cup_store where storeId = #{item.storeId} and isOpen = 1) |
| | | </if> |
| | | <if test="null != item.gender"> |
| | | and #{item.gender} = a.gender |
| | |
| | | and `name` like CONCAT('%', #{item.name}, '%') |
| | | </if> |
| | | <if test="null != item.startTime and '' != item.startTime"> |
| | | and DATE_FORMAT(startTime, '%Y-%m-%d') >= #{item.startTime} |
| | | and DATE_FORMAT(startTime, '%Y-%m-%d') = #{item.startTime} |
| | | </if> |
| | | <if test="null != item.endTime and '' != item.endTime"> |
| | | and DATE_FORMAT(endTime, '%Y-%m-%d') <= #{item.endTime} |
| | | and DATE_FORMAT(endTime, '%Y-%m-%d') = #{item.endTime} |
| | | </if> |
| | | <if test="null != item.status"> |
| | | and status= #{item.status} |
| | |
| | | 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, |
| | | 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"> |