Updated logic spreadsheet
This commit is contained in:
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user