Done ticket GEPAFINBE-170
This commit is contained in:
@@ -1720,5 +1720,11 @@ public class ApplicationDao {
|
||||
// Step 4: Evaluate the mathematical expression
|
||||
return Utils.evaluateExpression(expression);
|
||||
}
|
||||
|
||||
public ApplicationEntity validateApplicationWithCompany(Long id,Long companyId) {
|
||||
ApplicationEntity application=applicationRepository.findByIdAndCompanyIdAndIsDeletedFalse(id,companyId);
|
||||
if (application==null){
|
||||
throw new CustomValidationException(Status.VALIDATION_ERROR,Translator.toLocale(GepafinConstant.PERMISSION_DENIED));
|
||||
}
|
||||
return application;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user