import json small fixes
This commit is contained in:
parent
8354dd3b31
commit
759cfd9a77
|
@ -1769,8 +1769,8 @@ public class DescriptionServiceImpl implements DescriptionService {
|
|||
|
||||
persist.setTypeId(referenceTypeEntity.getId());
|
||||
if (referenceEntity == null) {
|
||||
persist.setLabel(model.getLabel());
|
||||
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.setSourceType(ReferenceSourceType.Internal);
|
||||
} else {
|
||||
|
|
|
@ -2740,8 +2740,8 @@ public class PlanServiceImpl implements PlanService {
|
|||
|
||||
persist.setTypeId(referenceTypeEntity.getId());
|
||||
if (referenceEntity == null) {
|
||||
persist.setLabel(model.getLabel());
|
||||
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.setSourceType(ReferenceSourceType.Internal);
|
||||
} else {
|
||||
|
@ -2818,7 +2818,7 @@ public class PlanServiceImpl implements PlanService {
|
|||
PlanContactPersist persist = new PlanContactPersist();
|
||||
|
||||
persist.setEmail(commonModel.getEmail());
|
||||
persist.setFirstName(commonModel.getEmail());
|
||||
persist.setFirstName(commonModel.getFirstName());
|
||||
persist.setLastName(commonModel.getLastName());
|
||||
|
||||
return persist;
|
||||
|
|
Loading…
Reference in New Issue