fix(schedule): 修复集体项目类型显示为单人的问题

- 修改autoGroupParticipants方法中的projectType判断逻辑
- type=2(双人)或type=3(集体)都映射为projectType=2(集体)
- 之前只处理了type=3的情况,导致type=2的集体项目被错误标记为单人
This commit is contained in:
2025-12-31 14:15:26 +08:00
parent f45fee050e
commit 2f9fbbb2aa
10 changed files with 1 additions and 1 deletions

View File

@@ -406,7 +406,7 @@ public class MartialScheduleArrangeServiceImpl implements IMartialScheduleArrang
String projectName = project.getProjectName(); String projectName = project.getProjectName();
group.setGroupName(projectName + " " + (first.getCategory() != null ? first.getCategory() : "未分组")); group.setGroupName(projectName + " " + (first.getCategory() != null ? first.getCategory() : "未分组"));
group.setProjectId(first.getProjectId()); group.setProjectId(first.getProjectId());
group.setProjectType(project.getType() == 3 ? 2 : 1); // type=3映射为projectType=2(集体) group.setProjectType((project.getType() == 2 || project.getType() == 3) ? 2 : 1); // type=2(双人)或type=3(集体)映射为projectType=2(集体)
group.setDisplayOrder(displayOrder++); group.setDisplayOrder(displayOrder++);
group.setTotalParticipants(members.size()); group.setTotalParticipants(members.size());
group.setTotalTeams((int) teamCount); group.setTotalTeams((int) teamCount);