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