Updated criteria response for field ids coming in the mappedField response as value.
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
package net.gepafin.tendermanagement.dao;
|
package net.gepafin.tendermanagement.dao;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||||
import com.fasterxml.jackson.core.type.TypeReference;
|
import com.fasterxml.jackson.core.type.TypeReference;
|
||||||
|
import com.fasterxml.jackson.databind.JsonNode;
|
||||||
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
import net.gepafin.tendermanagement.config.Translator;
|
import net.gepafin.tendermanagement.config.Translator;
|
||||||
import net.gepafin.tendermanagement.constants.GepafinConstant;
|
import net.gepafin.tendermanagement.constants.GepafinConstant;
|
||||||
import net.gepafin.tendermanagement.entities.*;
|
import net.gepafin.tendermanagement.entities.*;
|
||||||
@@ -49,7 +52,6 @@ public class ApplicationEvaluationDao {
|
|||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private FormRepository formRepository;
|
private FormRepository formRepository;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private CallTargetAudienceChecklistRepository callTargetAudienceChecklistRepository;
|
private CallTargetAudienceChecklistRepository callTargetAudienceChecklistRepository;
|
||||||
|
|
||||||
@@ -185,11 +187,19 @@ public class ApplicationEvaluationDao {
|
|||||||
.findFirst()
|
.findFirst()
|
||||||
.ifPresent(contentBean -> {
|
.ifPresent(contentBean -> {
|
||||||
mappedField.setFieldLabel(getLabelForField(contentBean));
|
mappedField.setFieldLabel(getLabelForField(contentBean));
|
||||||
|
switch (contentBean.getName()) {
|
||||||
if ("fileupload".equals(contentBean.getName())) {
|
case "fileupload":
|
||||||
mapFileFieldDetails(mappedField, formFieldId, applicationForm.getId(), applicationId);
|
mapFileFieldDetails(mappedField, formFieldId, applicationForm.getId(), applicationId);
|
||||||
} else {
|
break;
|
||||||
mapNonFileFieldDetails(mappedField, formFieldId, applicationForm.getId(), applicationId);
|
|
||||||
|
case "checkboxes":
|
||||||
|
populateOptionFieldsAsFieldValue(mappedField, formFieldId, applicationForm, applicationId, contentBean);
|
||||||
|
break;
|
||||||
|
case "paragraph":
|
||||||
|
handleParagraphField(applicationId, formField, contentBean, mappedField);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
populateOptionFieldsAsFieldValue(mappedField, formFieldId, applicationForm, applicationId, contentBean);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -676,17 +686,27 @@ public class ApplicationEvaluationDao {
|
|||||||
contentResponseBeans.stream().filter(bean -> bean.getId().equals(formFieldId)).findFirst().ifPresent(contentResponseBean -> {
|
contentResponseBeans.stream().filter(bean -> bean.getId().equals(formFieldId)).findFirst().ifPresent(contentResponseBean -> {
|
||||||
String label = getLabel(contentResponseBean);
|
String label = getLabel(contentResponseBean);
|
||||||
mappedField.setFieldLabel(label);
|
mappedField.setFieldLabel(label);
|
||||||
if ("fileupload".equals(contentResponseBean.getName())) {
|
switch (contentResponseBean.getName()) {
|
||||||
|
case "fileupload":
|
||||||
populateFileDetailsAsFieldValue(mappedField, formFieldId, applicationForm, applicationId);
|
populateFileDetailsAsFieldValue(mappedField, formFieldId, applicationForm, applicationId);
|
||||||
} else {
|
break;
|
||||||
applicationFormFieldRepository.findByFieldIdAndApplicationFormIdAndApplicationFormApplicationId(
|
|
||||||
formFieldId, applicationForm.getId(), applicationId)
|
case "checkboxes":
|
||||||
.ifPresent(formField -> mappedField.setFieldValue(formField.getFieldValue()));
|
populateOptionFieldsAsFieldValue(mappedField, formFieldId, applicationForm, applicationId, contentResponseBean);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case "paragraph":
|
||||||
|
handleParagraphField(applicationId, criteriaFormField, contentResponseBean, mappedField);
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
populateOptionFieldsAsFieldValue(mappedField, formFieldId, applicationForm, applicationId, contentResponseBean);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void populateFileDetailsAsFieldValue(CriteriaMappedField mappedField, String formFieldId,
|
private void populateFileDetailsAsFieldValue(CriteriaMappedField mappedField, String formFieldId,
|
||||||
ApplicationFormEntity applicationForm, Long applicationId) {
|
ApplicationFormEntity applicationForm, Long applicationId) {
|
||||||
applicationFormFieldRepository.findByFieldIdAndApplicationFormIdAndApplicationFormApplicationId(
|
applicationFormFieldRepository.findByFieldIdAndApplicationFormIdAndApplicationFormApplicationId(
|
||||||
@@ -719,6 +739,47 @@ public class ApplicationEvaluationDao {
|
|||||||
}
|
}
|
||||||
return label;
|
return label;
|
||||||
}
|
}
|
||||||
|
private void populateOptionFieldsAsFieldValue(CriteriaMappedField mappedField, String formFieldId, ApplicationFormEntity applicationForm, Long applicationId, ContentResponseBean contentBean) {
|
||||||
|
ObjectMapper objectMapper = new ObjectMapper();
|
||||||
|
findFormFieldValue(applicationId, formFieldId).ifPresent(formField -> {
|
||||||
|
Object value = formField.getFieldValue();
|
||||||
|
List<String> labels = new ArrayList<>();
|
||||||
|
if (value instanceof String) {
|
||||||
|
String fieldValue = (String) value;
|
||||||
|
if (fieldValue.contains(",")) {
|
||||||
|
try {
|
||||||
|
List<?> parsedValue = objectMapper.readValue(fieldValue, new TypeReference<List<?>>() {});
|
||||||
|
parsedValue.forEach(item -> addLabelToList(labels, item, contentBean));
|
||||||
|
} catch (JsonProcessingException e) {
|
||||||
|
|
||||||
|
String[] fallbackValues = fieldValue.split(",");
|
||||||
|
for (String item : fallbackValues) {
|
||||||
|
addLabelToList(labels, item.trim(), contentBean);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
mappedField.setFieldValue(!labels.isEmpty() ? labels : null);
|
||||||
|
} else {
|
||||||
|
|
||||||
|
addLabelToList(labels, fieldValue.trim(), contentBean);
|
||||||
|
mappedField.setFieldValue(!labels.isEmpty() ? labels.get(0) : null);
|
||||||
|
}
|
||||||
|
} else if (value instanceof List<?>) {
|
||||||
|
|
||||||
|
List<?> parsedValue = (List<?>) value;
|
||||||
|
parsedValue.forEach(item -> addLabelToList(labels, item, contentBean));
|
||||||
|
mappedField.setFieldValue(!labels.isEmpty() ? labels : null);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
private void addLabelToList(List<String> labels, Object item, ContentResponseBean contentBean) {
|
||||||
|
if (item instanceof String) {
|
||||||
|
Object label = PdfDao.findLabelInOptions(contentBean.getSettings(), item);
|
||||||
|
if (label != null) {
|
||||||
|
labels.add(label.toString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private DocumentResponseBean createDocumentResponseBean(DocumentEntity documentEntity) {
|
private DocumentResponseBean createDocumentResponseBean(DocumentEntity documentEntity) {
|
||||||
@@ -807,8 +868,6 @@ public class ApplicationEvaluationDao {
|
|||||||
|
|
||||||
fieldResponse.setFileDetail(documentResponseBeans);
|
fieldResponse.setFileDetail(documentResponseBeans);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mark this field ID as processed to prevent duplicates
|
|
||||||
processedFieldIds.add(fieldResponse.getId());
|
processedFieldIds.add(fieldResponse.getId());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -835,13 +894,31 @@ public class ApplicationEvaluationDao {
|
|||||||
response.setEvaluationDate(application.getSubmissionDate() != null ? application.getSubmissionDate().plusDays(30) : null);
|
response.setEvaluationDate(application.getSubmissionDate() != null ? application.getSubmissionDate().plusDays(30) : null);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
private Optional<ApplicationFormFieldEntity> findFormFieldValue(Long applicationId, String formFieldId) {
|
||||||
|
return applicationFormRepository.findByApplicationId(applicationId).stream()
|
||||||
|
.flatMap(applicationForm -> applicationFormFieldRepository.findByFieldIdAndApplicationFormIdAndApplicationFormApplicationId(
|
||||||
|
formFieldId, applicationForm.getId(), applicationId).stream())
|
||||||
|
.findFirst();
|
||||||
|
}
|
||||||
|
|
||||||
List<CriteriaResponse> getCriteriaResponse(Long applicationId) {
|
List<CriteriaResponse> getCriteriaResponse(Long applicationId) {
|
||||||
|
CallEntity call = getCallEntityByApplicationId(applicationId);
|
||||||
|
List<EvaluationCriteriaEntity> evaluationCriterias = getEvaluationCriterias(call);
|
||||||
|
|
||||||
CallEntity call = callRepository.findCallEntityByApplicationId(applicationId);
|
return evaluationCriterias.stream()
|
||||||
List<EvaluationCriteriaEntity> evaluationCriterias = evaluationCriteriaRepository.findByCallId(call.getId());
|
.map(criteria -> buildCriteriaResponse(applicationId, criteria))
|
||||||
|
.collect(Collectors.toList());
|
||||||
|
}
|
||||||
|
|
||||||
List<CriteriaResponse> criteriaResponses = evaluationCriterias.stream().map(criteria -> {
|
private CallEntity getCallEntityByApplicationId(Long applicationId) {
|
||||||
|
return callRepository.findCallEntityByApplicationId(applicationId);
|
||||||
|
}
|
||||||
|
|
||||||
|
private List<EvaluationCriteriaEntity> getEvaluationCriterias(CallEntity call) {
|
||||||
|
return evaluationCriteriaRepository.findByCallId(call.getId());
|
||||||
|
}
|
||||||
|
|
||||||
|
private CriteriaResponse buildCriteriaResponse(Long applicationId, EvaluationCriteriaEntity criteria) {
|
||||||
CriteriaResponse response = new CriteriaResponse();
|
CriteriaResponse response = new CriteriaResponse();
|
||||||
response.setId(criteria.getId());
|
response.setId(criteria.getId());
|
||||||
response.setLabel(criteria.getLookupData().getValue());
|
response.setLabel(criteria.getLookupData().getValue());
|
||||||
@@ -849,7 +926,13 @@ public class ApplicationEvaluationDao {
|
|||||||
response.setMaxScore(criteria.getScore());
|
response.setMaxScore(criteria.getScore());
|
||||||
response.setValid(null);
|
response.setValid(null);
|
||||||
|
|
||||||
List<CriteriaFormFieldEntity> criteriaFormFields = criteriaFormFieldRepository.findByEvaluationCriteriaIdAndIsDeletedFalse(criteria.getId());
|
List<CriteriaMappedField> mappedFields = getMappedFields(applicationId, criteria);
|
||||||
|
response.setCriteriaMappedFields(mappedFields);
|
||||||
|
return response;
|
||||||
|
}
|
||||||
|
|
||||||
|
private List<CriteriaMappedField> getMappedFields(Long applicationId, EvaluationCriteriaEntity criteria) {
|
||||||
|
List<CriteriaFormFieldEntity> criteriaFormFields = getCriteriaFormFields(criteria);
|
||||||
|
|
||||||
List<CriteriaMappedField> mappedFields = new ArrayList<>();
|
List<CriteriaMappedField> mappedFields = new ArrayList<>();
|
||||||
Set<String> processedFormFieldIds = new HashSet<>();
|
Set<String> processedFormFieldIds = new HashSet<>();
|
||||||
@@ -859,13 +942,71 @@ public class ApplicationEvaluationDao {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CriteriaMappedField mappedField = mapField(applicationId, criteriaFormField);
|
||||||
|
mappedFields.add(mappedField);
|
||||||
|
processedFormFieldIds.add(criteriaFormField.getFormFieldId());
|
||||||
|
}
|
||||||
|
|
||||||
|
return mappedFields;
|
||||||
|
}
|
||||||
|
|
||||||
|
private List<CriteriaFormFieldEntity> getCriteriaFormFields(EvaluationCriteriaEntity criteria) {
|
||||||
|
return criteriaFormFieldRepository.findByEvaluationCriteriaIdAndIsDeletedFalse(criteria.getId());
|
||||||
|
}
|
||||||
|
|
||||||
|
private CriteriaMappedField mapField(Long applicationId, CriteriaFormFieldEntity criteriaFormField) {
|
||||||
CriteriaMappedField mappedField = new CriteriaMappedField();
|
CriteriaMappedField mappedField = new CriteriaMappedField();
|
||||||
mappedField.setId(criteriaFormField.getFormFieldId());
|
mappedField.setId(criteriaFormField.getFormFieldId());
|
||||||
|
|
||||||
FormEntity formEntity = formRepository.findById(criteriaFormField.getFormId()).orElse(null);
|
FormEntity formEntity = formRepository.findById(criteriaFormField.getFormId()).orElse(null);
|
||||||
if (formEntity != null) {
|
if (formEntity != null) {
|
||||||
List<ContentResponseBean> contentResponseBeans = Utils.convertJsonStringToList(formEntity.getContent(), ContentResponseBean.class);
|
List<ContentResponseBean> contentResponseBeans = Utils.convertJsonStringToList(formEntity.getContent(), ContentResponseBean.class);
|
||||||
contentResponseBeans.stream().filter(bean -> bean.getId().equals(criteriaFormField.getFormFieldId())).findFirst().ifPresent(contentResponseBean -> {
|
contentResponseBeans.stream()
|
||||||
|
.filter(bean -> bean.getId().equals(criteriaFormField.getFormFieldId()))
|
||||||
|
.findFirst()
|
||||||
|
.ifPresent(contentResponseBean -> processFieldValue(applicationId, criteriaFormField, contentResponseBean, mappedField));
|
||||||
|
}
|
||||||
|
|
||||||
|
return mappedField;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void processFieldValue(Long applicationId, CriteriaFormFieldEntity criteriaFormField, ContentResponseBean contentResponseBean, CriteriaMappedField mappedField) {
|
||||||
|
String label = getLabelFromSettings(contentResponseBean);
|
||||||
|
|
||||||
|
mappedField.setFieldLabel(label);
|
||||||
|
|
||||||
|
boolean isCheckbox = "checkboxes".equals(contentResponseBean.getName());
|
||||||
|
boolean isFileUpload = "fileupload".equals(contentResponseBean.getName());
|
||||||
|
boolean isParagraph = "paragraph".equals(contentResponseBean.getName());
|
||||||
|
|
||||||
|
if (isFileUpload) {
|
||||||
|
handleFileUpload(applicationId, criteriaFormField, mappedField);
|
||||||
|
} else if (isCheckbox) {
|
||||||
|
handleCheckbox(applicationId, criteriaFormField, contentResponseBean, mappedField);
|
||||||
|
}
|
||||||
|
else if (isParagraph) {
|
||||||
|
handleParagraphField(applicationId, criteriaFormField, contentResponseBean, mappedField);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
handleOtherFields(applicationId, criteriaFormField, contentResponseBean, mappedField);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private void handleParagraphField(Long applicationId, CriteriaFormFieldEntity criteriaFormField, ContentResponseBean contentResponseBean, CriteriaMappedField mappedField) {
|
||||||
|
findFormFieldValue(applicationId, criteriaFormField.getFormFieldId()).ifPresent(formField -> {
|
||||||
|
String paragraph = contentResponseBean.getSettings().stream()
|
||||||
|
.filter(setting -> "text".equals(setting.getName()))
|
||||||
|
.map(SettingResponseBean::getValue)
|
||||||
|
.map(Object::toString)
|
||||||
|
.findFirst()
|
||||||
|
.orElse(null);
|
||||||
|
if (paragraph != null) {
|
||||||
|
mappedField.setFieldValue(paragraph.trim());
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
private String getLabelFromSettings(ContentResponseBean contentResponseBean) {
|
||||||
String label = contentResponseBean.getLabel();
|
String label = contentResponseBean.getLabel();
|
||||||
if (contentResponseBean.getSettings() != null) {
|
if (contentResponseBean.getSettings() != null) {
|
||||||
for (SettingResponseBean setting : contentResponseBean.getSettings()) {
|
for (SettingResponseBean setting : contentResponseBean.getSettings()) {
|
||||||
@@ -875,22 +1016,28 @@ public class ApplicationEvaluationDao {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mappedField.setFieldLabel(label);
|
return label;
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void handleFileUpload(Long applicationId, CriteriaFormFieldEntity criteriaFormField, CriteriaMappedField mappedField) {
|
||||||
List<DocumentResponseBean> documentResponseBeans = new ArrayList<>();
|
List<DocumentResponseBean> documentResponseBeans = new ArrayList<>();
|
||||||
applicationFormRepository.findByApplicationId(applicationId).stream()
|
findFormFieldValue(applicationId, criteriaFormField.getFormFieldId()).ifPresent(formField -> {
|
||||||
.flatMap(applicationForm -> applicationFormFieldRepository.findByFieldIdAndApplicationFormIdAndApplicationFormApplicationId(
|
|
||||||
criteriaFormField.getFormFieldId(), applicationForm.getId(), applicationId).stream())
|
|
||||||
.findFirst().ifPresent(formField -> {
|
|
||||||
String fieldValue = formField.getFieldValue();
|
String fieldValue = formField.getFieldValue();
|
||||||
if (fieldValue != null) {
|
if (fieldValue != null) {
|
||||||
String[] fieldValues = fieldValue.split(",");
|
String[] fieldValues = fieldValue.split(",");
|
||||||
for (String value : fieldValues) {
|
for (String value : fieldValues) {
|
||||||
String trimmedValue = value.trim();
|
Long documentId = Long.valueOf(value.trim());
|
||||||
if (isNumeric(trimmedValue)) {
|
|
||||||
Long documentId = Long.valueOf(trimmedValue);
|
|
||||||
documentRepository.findByIdAndNotDeleted(documentId).ifPresent(documentEntity -> {
|
documentRepository.findByIdAndNotDeleted(documentId).ifPresent(documentEntity -> {
|
||||||
|
DocumentResponseBean responseBean = mapDocumentEntityToResponse(documentEntity);
|
||||||
|
documentResponseBeans.add(responseBean);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
mappedField.setFieldValue(!documentResponseBeans.isEmpty() ? documentResponseBeans : null);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
private DocumentResponseBean mapDocumentEntityToResponse(DocumentEntity documentEntity) {
|
||||||
DocumentResponseBean responseBean = new DocumentResponseBean();
|
DocumentResponseBean responseBean = new DocumentResponseBean();
|
||||||
responseBean.setId(documentEntity.getId());
|
responseBean.setId(documentEntity.getId());
|
||||||
responseBean.setName(documentEntity.getFileName());
|
responseBean.setName(documentEntity.getFileName());
|
||||||
@@ -900,33 +1047,58 @@ public class ApplicationEvaluationDao {
|
|||||||
responseBean.setFilePath(documentEntity.getFilePath());
|
responseBean.setFilePath(documentEntity.getFilePath());
|
||||||
responseBean.setCreatedDate(documentEntity.getCreatedDate());
|
responseBean.setCreatedDate(documentEntity.getCreatedDate());
|
||||||
responseBean.setUpdatedDate(documentEntity.getUpdatedDate());
|
responseBean.setUpdatedDate(documentEntity.getUpdatedDate());
|
||||||
documentResponseBeans.add(responseBean);
|
return responseBean;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void handleCheckbox(Long applicationId, CriteriaFormFieldEntity criteriaFormField, ContentResponseBean contentResponseBean, CriteriaMappedField mappedField) {
|
||||||
|
ObjectMapper objectMapper = new ObjectMapper();
|
||||||
|
findFormFieldValue(applicationId, criteriaFormField.getFormFieldId()).ifPresent(formField -> {
|
||||||
|
Object value = formField.getFieldValue();
|
||||||
|
List<String> labels = new ArrayList<>();
|
||||||
|
|
||||||
|
if (value instanceof String) {
|
||||||
|
List<?> parsedValue = parseJsonValue((String) value, objectMapper);
|
||||||
|
addLabelsFromParsedValues(parsedValue, contentResponseBean, labels);
|
||||||
|
} else if (value instanceof List<?>) {
|
||||||
|
List<?> parsedValue = (List<?>) value;
|
||||||
|
addLabelsFromParsedValues(parsedValue, contentResponseBean, labels);
|
||||||
|
}
|
||||||
|
|
||||||
|
mappedField.setFieldValue(!labels.isEmpty() ? (labels.size() == 1 ? labels.get(0) : labels) : null);
|
||||||
});
|
});
|
||||||
} else {
|
}
|
||||||
mappedField.setFieldValue(trimmedValue);
|
|
||||||
|
private List<?> parseJsonValue(String value, ObjectMapper objectMapper) {
|
||||||
|
try {
|
||||||
|
return objectMapper.readValue(value, new TypeReference<List<?>>() {});
|
||||||
|
} catch (JsonProcessingException e) {
|
||||||
|
throw new RuntimeException(e);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void addLabelsFromParsedValues(List<?> parsedValue, ContentResponseBean contentResponseBean, List<String> labels) {
|
||||||
|
for (Object item : parsedValue) {
|
||||||
|
if (item instanceof String) {
|
||||||
|
Object label = PdfDao.findLabelInOptions(contentResponseBean.getSettings(), item);
|
||||||
|
if (label != null) {
|
||||||
|
labels.add(label.toString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!documentResponseBeans.isEmpty()) {
|
private void handleOtherFields(Long applicationId, CriteriaFormFieldEntity criteriaFormField, ContentResponseBean contentResponseBean, CriteriaMappedField mappedField) {
|
||||||
mappedField.setFieldValue(documentResponseBeans);
|
findFormFieldValue(applicationId, criteriaFormField.getFormFieldId()).ifPresent(formField -> {
|
||||||
} else {
|
String fieldValue = formField.getFieldValue() != null ? formField.getFieldValue().trim() : null;
|
||||||
mappedField.setFieldValue(fieldValue != null ? fieldValue.trim() : null);
|
Object label = PdfDao.findLabelInOptions(contentResponseBean.getSettings(), fieldValue);
|
||||||
|
if (label != null) {
|
||||||
|
mappedField.setFieldValue(fieldValue != null && !fieldValue.isEmpty() && !fieldValue.contains(",")
|
||||||
|
? label.toString()
|
||||||
|
: Arrays.asList(label.toString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
mappedFields.add(mappedField);
|
|
||||||
processedFormFieldIds.add(criteriaFormField.getFormFieldId());
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
response.setCriteriaMappedFields(mappedFields);
|
|
||||||
return response;
|
|
||||||
}).collect(Collectors.toList());
|
|
||||||
|
|
||||||
return criteriaResponses;
|
|
||||||
}
|
|
||||||
|
|
||||||
List<ChecklistResponse> getChecklistResponse(Long applicationId) {
|
List<ChecklistResponse> getChecklistResponse(Long applicationId) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user