fix on plan-new-version
This commit is contained in:
parent
0789653fb2
commit
57a7d502f4
|
@ -524,7 +524,6 @@ public class PlanServiceImpl implements PlanService {
|
|||
for (SectionEntity section: sections) {
|
||||
if (!this.conventionService.isListNullOrEmpty(section.getDescriptionTemplates())){
|
||||
for (DescriptionTemplateEntity blueprintDescriptionTemplate: section.getDescriptionTemplates()) {
|
||||
if (model.getDescriptions().stream().map(NewVersionPlanDescriptionPersist::getBlueprintSectionId).toList().contains(section.getId())){
|
||||
PlanDescriptionTemplateEntity existingBlueprintDescriptionTemplateEntity = newPlanDescriptionTemplateEntities.stream().filter(x -> x.getSectionId().equals(section.getId()) && x.getDescriptionTemplateGroupId().equals(blueprintDescriptionTemplate.getDescriptionTemplateGroupId())).findFirst().orElse(null);
|
||||
if (existingBlueprintDescriptionTemplateEntity == null){
|
||||
PlanDescriptionTemplateEntity newTemplate = new PlanDescriptionTemplateEntity();
|
||||
|
@ -542,7 +541,6 @@ public class PlanServiceImpl implements PlanService {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
for (PlanDescriptionTemplateEntity oldPlanDescriptionTemplate : planDescriptionTemplates) {
|
||||
|
|
Loading…
Reference in New Issue