| | |
| | | <mapper namespace="com.dsh.competition.mapper.CompetitionMapper"> |
| | | |
| | | <delete id="deleteTenMinutes"> |
| | | delete from t_payment_competition |
| | | WHERE payStatus = 1 |
| | | AND DATE_ADD(insertTime, INTERVAL 10 MINUTE) <= NOW() |
| | | delete from t_user_competition |
| | | |
| | | where paymentCompetitionId in |
| | | <foreach collection="pays" item="pay" separator="," open="(" close=")"> |
| | | #{pay} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | |
| | |
| | | FROM |
| | | t_competition a |
| | | WHERE |
| | | a.auditStatus = 2 |
| | | a.auditStatus = 2 and a.status != 4 |
| | | AND a.state = 1 |
| | | <if test="null != cityCode and '' != cityCode"> |
| | | and a.cityCode = #{cityCode} |