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) { if (evaluationFormEntity == null) {
return; return;
} }
ApplicationEvaluationFormEntity applicationEvaluationFormEntity = getApplicationEvaluationFormOrCreate(evaluationFormEntity, entity);
List<ContentResponseBean> contentResponseBeans = evaluationFormDao List<ContentResponseBean> contentResponseBeans = evaluationFormDao
.convertEvaluationFormEntityToEvaluationFormResponseBean(evaluationFormEntity) .convertEvaluationFormEntityToEvaluationFormResponseBean(evaluationFormEntity)
.getContent(); .getContent();
if (CollectionUtils.isEmpty(contentResponseBeans)) { if (CollectionUtils.isEmpty(contentResponseBeans)) {
return; 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<>(); List<ApplicationFormFieldRequestBean> spreadsheetUpdates = new ArrayList<>();
for (ContentResponseBean contentResponseBean : contentResponseBeans) { for (ContentResponseBean contentResponseBean : contentResponseBeans) {
if (!GepafinConstant.SPREADSHEET.equals(contentResponseBean.getName())) { if (!GepafinConstant.SPREADSHEET.equals(contentResponseBean.getName())) {