大赛管理功能

This commit is contained in:
tiger_zhou 2024-02-23 10:02:44 +08:00
parent e515bcb56a
commit 63c1c88312
2 changed files with 9 additions and 3 deletions

View File

@ -135,6 +135,11 @@ public class RaceSceneService extends RaceService {
}
}
public static void main(String[] args) {
StorageSimulation.Builder ss = StorageSimulation.newBuilder();
ss.addPlayerIds("a");
}
private PublishHereVO createSceneProto(Long TraningPublish) {
DraftTraining2WithBLOBs bs = this.trainingDao.selectByPrimaryKey(TraningPublish);
BusinessExceptionAssertEnum.DATA_NOT_EXIST.assertTrue(Objects.nonNull(bs), "没有找到对应的实训数据");
@ -145,7 +150,8 @@ public class RaceSceneService extends RaceService {
ss.setBgSceneJson(bs.getBgSceneJson());
ss.setMemberJson(bs.getMemberJson());
ss.setStepJson(bs.getStepJson());
ss.getPlayerIdsList().addAll(plays);
ss.addAllPlayerIds(plays);
return new PublishHereVO(bs.getMapId(), ss.build());
}

View File

@ -18,8 +18,8 @@ public class SceneServiceTest {
@Test
public void publishTest() {
RaceScenePublishVO.Builder p = RaceScenePublishVO.newBuilder();
p.setTraningPublishId(0);
p.setName("");
p.setTraningPublishId(847);
p.setName("asdfasdf");
this.sceneService.publishHere(p.build(), SeasonServiceTest.createAccount());
}