| | |
| | | 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> |
| | |
| | | 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> |
| | |
| | | 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=")"> |
| | |
| | | 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=")"> |
| | |
| | | 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=")"> |
| | |
| | | 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> |
| | |
| | | appUserId, |
| | | count(*) as num |
| | | from t_world_cup_competitor |
| | | where matchResult = 1 |
| | | where matchResult != -1 |
| | | <if test="null != worldCupId"> |
| | | and worldCupId = #{worldCupId} |
| | | </if> |
| | |
| | | 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> |
| | |
| | | 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> |
| | |
| | | appUserId, |
| | | count(*) as num |
| | | from t_world_cup_competitor |
| | | where matchResult = 1 |
| | | where matchResult != -1 |
| | | <if test="null != participantType"> |
| | | and participantType = #{participantType} |
| | | </if> |