Updated code for company document
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user