Updated code for company document

This commit is contained in:
rajesh
2025-11-19 13:06:44 +05:30
parent a87779deac
commit 87816c9ce0
2 changed files with 2 additions and 2 deletions

View File

@@ -2668,7 +2668,7 @@ public class ApplicationDao {
public List<CompanyDocumentEntity> validateCompanyDocuments(List<Long> ids) {
List<CompanyDocumentEntity> documents =
companyDocumentRepository.findByIdInAndIsDeletedFalseAndStatus(ids,CompanyDocumentStatusEnum.VALID.getValue());
companyDocumentRepository.findByIdInAndIsDeletedFalseAndStatusNot(ids,CompanyDocumentStatusEnum.EXPIRED.getValue());
Set<Long> foundIds = documents.stream()
.map(CompanyDocumentEntity::getId)