|
|
|
@ -48,8 +48,8 @@ |
|
|
|
|
END AS team_id |
|
|
|
|
FROM |
|
|
|
|
c_competition_registration qa |
|
|
|
|
INNER JOIN nakadai.hr_user_account ua ON ua.id = qa.account_id |
|
|
|
|
INNER JOIN nakadai.hr_user_info u ON u.user_id = ua.user_id |
|
|
|
|
INNER JOIN nakadai.hr_user_account ua ON ua.id = qa.account_id and ua.is_del = 0 |
|
|
|
|
INNER JOIN nakadai.hr_user_info u ON u.user_id = ua.user_id and u.is_del = 0 |
|
|
|
|
LEFT JOIN c_competition_team ct ON ct.competition_id = qa.competition_id AND ct.account_id = qa.account_id |
|
|
|
|
WHERE |
|
|
|
|
qa.competition_id = #{req.competitionId} |
|
|
|
@ -135,4 +135,16 @@ |
|
|
|
|
join nakadai.school s on s.school_id = a.school_id |
|
|
|
|
WHERE a.id = #{accountId} and s.is_del = 0 |
|
|
|
|
</select> |
|
|
|
|
<select id="countTheNumberOfApplicants" resultType="java.lang.Integer"> |
|
|
|
|
SELECT |
|
|
|
|
count( 1 ) |
|
|
|
|
FROM |
|
|
|
|
c_competition_registration r |
|
|
|
|
INNER JOIN nakadai.hr_user_account a ON a.id = r.account_id |
|
|
|
|
AND a.is_del = 0 |
|
|
|
|
INNER JOIN nakadai.hr_user_info u ON u.user_id = a.user_id |
|
|
|
|
AND u.is_del = 0 |
|
|
|
|
WHERE |
|
|
|
|
r.competition_id = #{competitionId} |
|
|
|
|
</select> |
|
|
|
|
</mapper> |
|
|
|
|