feat(registration): 报名成功后自动确认选手状态

This commit is contained in:
2025-12-31 15:47:04 +08:00
parent e50b71a13d
commit 760b7d0039
9 changed files with 3 additions and 1 deletions

View File

@@ -127,7 +127,7 @@ public class MartialRegistrationOrderController extends BladeController {
teamAthlete.setTeamName(team.getTeamName());
teamAthlete.setPlayerName(team.getTeamName());
teamAthlete.setOrganization(team.getTeamName());
teamAthlete.setRegistrationStatus(0);
teamAthlete.setRegistrationStatus(1); // Auto confirm after payment
teamAthlete.setCompetitionStatus(0);
teamAthlete.setCreateUser(AuthUtil.getUserId());
teamAthlete.setCreateTime(new java.util.Date());
@@ -149,6 +149,8 @@ public class MartialRegistrationOrderController extends BladeController {
if (firstProjectId != null) {
updateWrapper.set(MartialAthlete::getProjectId, firstProjectId);
}
// Auto confirm after payment
updateWrapper.set(MartialAthlete::getRegistrationStatus, 1);
boolean updated = athleteService.update(updateWrapper);
log.info("更新选手关联,选手数量: {}, 更新结果: {}", athleteIds.size(), updated);