import json small fixes

This commit is contained in:
CITE\amentis 2024-08-29 13:35:57 +03:00
parent 8354dd3b31
commit 759cfd9a77
2 changed files with 3 additions and 3 deletions

View File

@ -1769,8 +1769,8 @@ public class DescriptionServiceImpl implements DescriptionService {
persist.setTypeId(referenceTypeEntity.getId()); persist.setTypeId(referenceTypeEntity.getId());
if (referenceEntity == null) { if (referenceEntity == null) {
persist.setLabel(model.getLabel());
persist.setReference(!this.conventionService.isNullOrEmpty(model.getReference()) ? model.getReference() : UUID.randomUUID().toString()); persist.setReference(!this.conventionService.isNullOrEmpty(model.getReference()) ? model.getReference() : UUID.randomUUID().toString());
persist.setLabel(!this.conventionService.isNullOrEmpty(model.getLabel()) ? model.getLabel() : persist.getReference());
persist.setSource("internal"); persist.setSource("internal");
persist.setSourceType(ReferenceSourceType.Internal); persist.setSourceType(ReferenceSourceType.Internal);
} else { } else {

View File

@ -2740,8 +2740,8 @@ public class PlanServiceImpl implements PlanService {
persist.setTypeId(referenceTypeEntity.getId()); persist.setTypeId(referenceTypeEntity.getId());
if (referenceEntity == null) { if (referenceEntity == null) {
persist.setLabel(model.getLabel());
persist.setReference(!this.conventionService.isNullOrEmpty(model.getReference()) ? model.getReference() : UUID.randomUUID().toString()); persist.setReference(!this.conventionService.isNullOrEmpty(model.getReference()) ? model.getReference() : UUID.randomUUID().toString());
persist.setLabel(!this.conventionService.isNullOrEmpty(model.getLabel()) ? model.getLabel() : persist.getReference());
persist.setSource("internal"); persist.setSource("internal");
persist.setSourceType(ReferenceSourceType.Internal); persist.setSourceType(ReferenceSourceType.Internal);
} else { } else {
@ -2818,7 +2818,7 @@ public class PlanServiceImpl implements PlanService {
PlanContactPersist persist = new PlanContactPersist(); PlanContactPersist persist = new PlanContactPersist();
persist.setEmail(commonModel.getEmail()); persist.setEmail(commonModel.getEmail());
persist.setFirstName(commonModel.getEmail()); persist.setFirstName(commonModel.getFirstName());
persist.setLastName(commonModel.getLastName()); persist.setLastName(commonModel.getLastName());
return persist; return persist;