updated code for get company delegation

This commit is contained in:
rajesh
2024-12-05 22:12:24 +05:30
parent 1790bbf52b
commit cbaf25801f
5 changed files with 49 additions and 23 deletions

View File

@@ -1396,5 +1396,12 @@ public class ApplicationEvaluationDao {
}
return null;
}
public ApplicationEvaluationEntity validateApplicationEvaluationByApplicationId(Long applicationId) {
return applicationEvaluationRepository
.findByApplicationIdAndIsDeletedFalse(applicationId)
.orElseThrow(() -> new ResourceNotFoundException(Status.NOT_FOUND,
Translator.toLocale(GepafinConstant.APPLICATION_EVALUATION_NOT_FOUND)));
}
}