fix: 移除MartialAthleteMapper中排除集体项目的过滤条件

- 删除 AND (a.team_name IS NULL OR a.player_name != a.team_name) 条件
- 使统计页面能够正确包含集体项目数据
- 修复Issue #3: 统计页面未包含集体项目数据

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
2026-01-15 15:56:29 +08:00
co-authored by factory-droid[bot]
parent 868b4be356
commit c6bf0d3404
9 changed files with 0 additions and 1 deletions
@@ -12,7 +12,6 @@
LEFT JOIN martial_competition c ON a.competition_id = c.id AND c.is_deleted = 0
LEFT JOIN martial_project p ON a.project_id = p.id AND p.is_deleted = 0
WHERE a.is_deleted = 0
AND (a.team_name IS NULL OR a.player_name != a.team_name)
<if test="athlete.competitionId != null">
AND a.competition_id = #{athlete.competitionId}
</if>