【清空步骤时,清空最后运行背景】

This commit is contained in:
weizhihong 2022-09-26 13:21:03 +08:00
parent e6721d69ac
commit 40678cbc72

View File

@ -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));
}
// 成员信息
List<SimulationMemberPO> simulationMemberPOList = SimulationMemberPO.convertFromBOList(simulation.getSimulationMembers());
updateObj.setMemberJson(JsonUtils.writeValueAsString(simulationMemberPOList));