Added NDG field in the application pagination API
This commit is contained in:
@@ -507,6 +507,7 @@ public class ApplicationDao {
|
||||
responseBean.setAmountRequested(applicationEntity.getAmountRequested());
|
||||
responseBean.setDateAccepted(applicationEntity.getDateAccepted());
|
||||
responseBean.setDateRejected(applicationEntity.getDateRejected());
|
||||
responseBean.setNdg(applicationEntity.getNdg());
|
||||
return responseBean;
|
||||
}
|
||||
|
||||
@@ -2004,8 +2005,13 @@ public class ApplicationDao {
|
||||
searchPattern
|
||||
);
|
||||
|
||||
Predicate ndgPredicate = criteriaBuilder.like(
|
||||
criteriaBuilder.upper(root.get(GepafinConstant.NDG_STRING)),
|
||||
searchPattern
|
||||
);
|
||||
|
||||
// Combine them using a single `or()`
|
||||
Predicate finalPredicate = criteriaBuilder.or(titlePredicate, callTitlePredicate,callNamePredicate,companyName);
|
||||
Predicate finalPredicate = criteriaBuilder.or(titlePredicate, callTitlePredicate,callNamePredicate,companyName, ndgPredicate);
|
||||
predicates.add(finalPredicate);
|
||||
}
|
||||
|
||||
@@ -2071,6 +2077,7 @@ public class ApplicationDao {
|
||||
responseBean.setAmountRequested(applicationView.getAmountRequested());
|
||||
responseBean.setDateAccepted(applicationView.getDateAccepted());
|
||||
responseBean.setDateRejected(applicationView.getDateRejected());
|
||||
responseBean.setNdg(applicationView.getNdg());
|
||||
return responseBean;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user