fix(schedule): 修复集体项目类型显示为单人的问题
- 修改autoGroupParticipants方法中的projectType判断逻辑 - type=2(双人)或type=3(集体)都映射为projectType=2(集体) - 之前只处理了type=3的情况,导致type=2的集体项目被错误标记为单人
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -406,7 +406,7 @@ public class MartialScheduleArrangeServiceImpl implements IMartialScheduleArrang
|
||||
String projectName = project.getProjectName();
|
||||
group.setGroupName(projectName + " " + (first.getCategory() != null ? first.getCategory() : "未分组"));
|
||||
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.setTotalParticipants(members.size());
|
||||
group.setTotalTeams((int) teamCount);
|
||||
|
||||
Reference in New Issue
Block a user