大赛管理功能
This commit is contained in:
parent
e515bcb56a
commit
63c1c88312
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue