| | |
| | | import com.rongyichuang.activity.repository.ActivityPlayerRatingRepository; |
| | | import com.rongyichuang.common.entity.Media; |
| | | import com.rongyichuang.common.repository.MediaRepository; |
| | | import com.rongyichuang.message.service.MessageService; |
| | | import com.rongyichuang.player.dto.*; |
| | | import com.rongyichuang.player.entity.ActivityPlayer; |
| | | import com.rongyichuang.player.repository.ActivityPlayerRepository; |
| | |
| | | |
| | | @Autowired |
| | | private MediaRepository mediaRepository; |
| | | |
| | | @Autowired |
| | | private MessageService messageService; |
| | | |
| | | /** |
| | | * 获取比赛晋级列表 |
| | |
| | | // 复制媒体文件 |
| | | copyMediaFiles(participant.getId(), savedParticipant.getId()); |
| | | |
| | | // 创建晋级消息 |
| | | messageService.createPromotionMessage( |
| | | savedParticipant.getId(), |
| | | savedParticipant.getPlayerId(), |
| | | savedParticipant.getProjectName() |
| | | ); |
| | | |
| | | promotedCount++; |
| | | } |
| | | } |