|
@@ -435,15 +435,15 @@ public class SceneStandardsService {
|
|
|
|
|
|
// 计算复杂度
|
|
|
if (!StringUtils.isEmpty(parms.getSceneEvaluationRuleId())) {
|
|
|
- String tempSceneId = scenes.get(0).getRegulationsId();
|
|
|
SceneEvaluationComputeParam sceneEvaluationComputeParam = new SceneEvaluationComputeParam();
|
|
|
- sceneEvaluationComputeParam.setSceneId(isupdate.equals("0") ? tempSceneId : standardsRegulationsPO.getRegulationsId());
|
|
|
+ sceneEvaluationComputeParam.setSceneId(isupdate.equals("0") ? standardsRegulationsPO.getRegulationsId() : scenes.get(0).getRegulationsId());
|
|
|
sceneEvaluationComputeParam.setSceneXOSCPath(standardsRegulationsPO.getXmlAddress());
|
|
|
sceneEvaluationComputeParam.setSceneXODRPath(standardsRegulationsPO.getXodrAddress());
|
|
|
sceneEvaluationComputeParam.setSceneType(DictConstants.SCENE_STANDARD);
|
|
|
sceneEvaluationComputeParam.setTaskId(taskId);
|
|
|
sceneEvaluationComputeParam.setComputeType(DictConstants.COMPLEXITY);
|
|
|
- if (isupdate.equals("0")) {
|
|
|
+ if (isupdate.equals("1")) {
|
|
|
+ String tempSceneId = scenes.get(0).getRegulationsId();
|
|
|
sceneEvaluationComputeParam.setCopySceneId(scenes.stream().map(StandardsRegulationsPO::getRegulationsId).filter(sceneId -> !StringUtils.equals(tempSceneId, sceneId)).collect(Collectors.toList()));
|
|
|
}
|
|
|
log.info("添加计算复杂度数据:" + sceneEvaluationComputeParam);
|