| | |
| | | a.opponentScore, |
| | | DATE_FORMAT(a.startTime, '%Y-%m-%d %H:%i') as startTime, |
| | | a.matchResult, |
| | | (a.participationIntegral + a.winIntegral) as award |
| | | (a.participationIntegral + a.winIntegral+a.drawIntegral+a.loseIntegral) as award |
| | | from t_world_cup_competitor a |
| | | left join t_world_cup b on (a.worldCupId = b.id) |
| | | where a.matchResult is not null and a.participantId = #{item.id} and a.participantType = #{item.isStudent} |
| | |
| | | left join t_world_cup_payment b on (a.worldCupPaymentId = b.id) |
| | | left join t_world_cup c on (b.worldCupId = c.id) |
| | | where a.participantId = #{item.id} and b.payStatus = 2 and b.refundTime is null and b.state = 1 |
| | | <if test="null != item.name"> |
| | | and c.name like CONCAT('%', #{item.name}, '%') |
| | | </if> |
| | | order by a.createTime desc |
| | | </select> |
| | | </mapper> |