Fixed application status issue

This commit is contained in:
rajesh
2025-11-13 12:17:21 +05:30
parent 52208a0c60
commit 53a9f2ae05
2 changed files with 11 additions and 0 deletions

View File

@@ -380,6 +380,15 @@ public class ApplicationAmendmentRequestDao {
//Set stop date time in the entity becuase amendment has started
applicationEvaluationEntity.setStopDateTime(DateTimeUtil.DateServerToUTC(LocalDateTime.now()));
}
}
boolean noneClosedOrExpired = amendmentRequest.stream()
.noneMatch(amendment ->
amendment.getStatus().equals(ApplicationAmendmentRequestEnum.CLOSE.getValue()) ||
amendment.getStatus().equals(ApplicationAmendmentRequestEnum.EXPIRED.getValue())
);
if(Boolean.TRUE.equals(noneClosedOrExpired)){
applicationEntity.setPreviousStatus(oldApplicationEntity.getStatus());
}