Updated logic spreadsheet

This commit is contained in:
rajesh
2026-04-03 15:19:18 +05:30
parent ed856947b5
commit 492f0e7dfd

View File

@@ -2225,13 +2225,18 @@ public class ApplicationEvaluationDao {
if (evaluationFormEntity == null) {
return;
}
ApplicationEvaluationFormEntity applicationEvaluationFormEntity = getApplicationEvaluationFormOrCreate(evaluationFormEntity, entity);
List<ContentResponseBean> contentResponseBeans = evaluationFormDao
.convertEvaluationFormEntityToEvaluationFormResponseBean(evaluationFormEntity)
.getContent();
if (CollectionUtils.isEmpty(contentResponseBeans)) {
return;
}
boolean evaluationFormHasSpreadsheet = contentResponseBeans.stream()
.anyMatch(c -> GepafinConstant.SPREADSHEET.equals(c.getName()));
if (!evaluationFormHasSpreadsheet) {
return;
}
ApplicationEvaluationFormEntity applicationEvaluationFormEntity = getApplicationEvaluationFormOrCreate(evaluationFormEntity, entity);
List<ApplicationFormFieldRequestBean> spreadsheetUpdates = new ArrayList<>();
for (ContentResponseBean contentResponseBean : contentResponseBeans) {
if (!GepafinConstant.SPREADSHEET.equals(contentResponseBean.getName())) {