feat(registration): 报名成功后自动确认选手状态
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.
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user