|
|
@@ -22,11 +22,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
END) as totalParticipants,
|
|
|
(SELECT COUNT(DISTINCT (CASE WHEN p.classification = '0' THEN s.athlete_id ELSE s.team_id END))
|
|
|
FROM game_score s
|
|
|
- WHERE s.project_id = p.project_id AND s.del_flag = '0'
|
|
|
+ WHERE s.event_id = #{eventId} AND s.project_id = p.project_id AND s.del_flag = '0'
|
|
|
AND ((s.individual_performance > 0) OR (s.team_performance > 0))
|
|
|
) as completedParticipants
|
|
|
FROM game_event_project p
|
|
|
- WHERE p.event_id = #{eventId}
|
|
|
+ WHERE p.event_id = #{eventId} and p.del_flag = '0'
|
|
|
<if test="projectIds != null and projectIds.size > 0">
|
|
|
AND p.project_id IN
|
|
|
<foreach item="projectId" collection="projectIds" separator="," open="(" close=")">
|