From 40678cbc722010c408ca4464041308bfcd5a2b1f Mon Sep 17 00:00:00 2001 From: weizhihong Date: Mon, 26 Sep 2022 13:21:03 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=B8=85=E7=A9=BA=E6=AD=A5=E9=AA=A4?= =?UTF-8?q?=E6=97=B6=EF=BC=8C=E6=B8=85=E7=A9=BA=E6=9C=80=E5=90=8E=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E8=83=8C=E6=99=AF=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../rtss/services/training2/Training2DraftService.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/club/joylink/rtss/services/training2/Training2DraftService.java b/src/main/java/club/joylink/rtss/services/training2/Training2DraftService.java index b82c377a2..c9420b2ad 100644 --- a/src/main/java/club/joylink/rtss/services/training2/Training2DraftService.java +++ b/src/main/java/club/joylink/rtss/services/training2/Training2DraftService.java @@ -373,6 +373,8 @@ public class Training2DraftService { if (CollectionUtils.isEmpty(step2VOList)) { updateObj.setStepJson(StringUtil.EMPTY_STRING); updateObj.setScoringRuleJson(StringUtil.EMPTY_STRING); + updateObj.setPlayerIdJson(StringUtil.EMPTY_STRING); + updateObj.setFinalScenesJson(StringUtil.EMPTY_STRING); } else { String scoringRuleJson = handleStepScoringRule(draftTraining2, step2VOList); updateObj.setScoringRuleJson(scoringRuleJson); @@ -387,10 +389,10 @@ public class Training2DraftService { throw new SimulationException(SimulationExceptionType.Data_Not_Exist, "错误数据:无扮演者"); } updateObj.setPlayerIdJson(JsonUtils.writeValueAsString(playerList)); + // 背景 + StorageSimulation scenesSaving = new StorageSimulation(simulation, false); + updateObj.setFinalScenesJson(JsonUtils.writeValueAsString(scenesSaving)); } - // 背景 - StorageSimulation scenesSaving = new StorageSimulation(simulation, false); - updateObj.setFinalScenesJson(JsonUtils.writeValueAsString(scenesSaving)); // 成员信息 List simulationMemberPOList = SimulationMemberPO.convertFromBOList(simulation.getSimulationMembers()); updateObj.setMemberJson(JsonUtils.writeValueAsString(simulationMemberPOList));