【清空步骤时,清空最后运行背景】
This commit is contained in:
parent
e6721d69ac
commit
40678cbc72
@ -373,6 +373,8 @@ public class Training2DraftService {
|
|||||||
if (CollectionUtils.isEmpty(step2VOList)) {
|
if (CollectionUtils.isEmpty(step2VOList)) {
|
||||||
updateObj.setStepJson(StringUtil.EMPTY_STRING);
|
updateObj.setStepJson(StringUtil.EMPTY_STRING);
|
||||||
updateObj.setScoringRuleJson(StringUtil.EMPTY_STRING);
|
updateObj.setScoringRuleJson(StringUtil.EMPTY_STRING);
|
||||||
|
updateObj.setPlayerIdJson(StringUtil.EMPTY_STRING);
|
||||||
|
updateObj.setFinalScenesJson(StringUtil.EMPTY_STRING);
|
||||||
} else {
|
} else {
|
||||||
String scoringRuleJson = handleStepScoringRule(draftTraining2, step2VOList);
|
String scoringRuleJson = handleStepScoringRule(draftTraining2, step2VOList);
|
||||||
updateObj.setScoringRuleJson(scoringRuleJson);
|
updateObj.setScoringRuleJson(scoringRuleJson);
|
||||||
@ -387,10 +389,10 @@ public class Training2DraftService {
|
|||||||
throw new SimulationException(SimulationExceptionType.Data_Not_Exist, "错误数据:无扮演者");
|
throw new SimulationException(SimulationExceptionType.Data_Not_Exist, "错误数据:无扮演者");
|
||||||
}
|
}
|
||||||
updateObj.setPlayerIdJson(JsonUtils.writeValueAsString(playerList));
|
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<SimulationMemberPO> simulationMemberPOList = SimulationMemberPO.convertFromBOList(simulation.getSimulationMembers());
|
List<SimulationMemberPO> simulationMemberPOList = SimulationMemberPO.convertFromBOList(simulation.getSimulationMembers());
|
||||||
updateObj.setMemberJson(JsonUtils.writeValueAsString(simulationMemberPOList));
|
updateObj.setMemberJson(JsonUtils.writeValueAsString(simulationMemberPOList));
|
||||||
|
Loading…
Reference in New Issue
Block a user