Fixed issue of getAllCompanyDocument Api
This commit is contained in:
@@ -306,6 +306,8 @@ public class CompanyDocumentDao {
|
|||||||
return (root, query, builder) -> {
|
return (root, query, builder) -> {
|
||||||
Predicate predicate = builder.equal(root.get("companyId"), companyId);
|
Predicate predicate = builder.equal(root.get("companyId"), companyId);
|
||||||
|
|
||||||
|
predicate = builder.and(predicate, builder.isFalse(root.get("isDeleted")));
|
||||||
|
|
||||||
if (typeEnum != null) {
|
if (typeEnum != null) {
|
||||||
if (typeEnum == CompanyDocumentTypeEnum.COMPANY_DOCUMENT) {
|
if (typeEnum == CompanyDocumentTypeEnum.COMPANY_DOCUMENT) {
|
||||||
// Case 1: Fetch only COMPANY_DOCUMENT type documents for the given company
|
// Case 1: Fetch only COMPANY_DOCUMENT type documents for the given company
|
||||||
|
|||||||
Reference in New Issue
Block a user