| | |
| | | b.city as cityName, |
| | | b.registerCondition, |
| | | b.introduction, |
| | | b.id as pId, |
| | | DATE_FORMAT(b.registerEndTime, '%Y-%m-%d %H:%i') as registerEndTime, |
| | | CONCAT(b.startAge, '-', b.endAge) as age, |
| | | b.baseNumber + b.applicantsNumber as heat, |
| | | b.baseNumber as heat, |
| | | if(a.payStatus = 3, 4, b.status) as status |
| | | from t_payment_competition a |
| | | left join t_competition b on (a.competitionId = b.id) |
| | |
| | | LEFT JOIN t_course_package cp ON py.coursePackageId = cp.id |
| | | WHERE py.code = #{code} |
| | | </select> |
| | | <select id="counts" resultType="java.lang.Integer"> |
| | | select count(1) |
| | | from t_user_competition where competitionId = #{id} |
| | | </select> |
| | | </mapper> |