diff --git a/partner/partner-management-service/src/main/java/io/mosip/pms/partner/manager/controller/PartnerManagementController.java b/partner/partner-management-service/src/main/java/io/mosip/pms/partner/manager/controller/PartnerManagementController.java index 7de734ab0c..1a6647fcf9 100644 --- a/partner/partner-management-service/src/main/java/io/mosip/pms/partner/manager/controller/PartnerManagementController.java +++ b/partner/partner-management-service/src/main/java/io/mosip/pms/partner/manager/controller/PartnerManagementController.java @@ -344,7 +344,7 @@ public ResponseWrapperV2> getA @RequestParam(value = "policyId", required = false) String policyId, @RequestParam(value = "policyName", required = false) String policyName, @RequestParam(value = "policyGroupName", required = false) String policyGroupName, - @RequestParam(value = "partnerTypeCode", required = false) String partnerTypeCode + @RequestParam(value = "partnerType", required = false) String partnerType ) { partnerHelper.validateRequestParameters(partnerHelper.partnerPolicyMappingAliasToColumnMap, sortFieldName, sortType, pageNo, pageSize); PartnerPolicyRequestFilterDto filterDto = new PartnerPolicyRequestFilterDto(); @@ -369,8 +369,8 @@ public ResponseWrapperV2> getA if (policyGroupName != null) { filterDto.setPolicyGroupName(policyGroupName.toLowerCase()); } - if (partnerTypeCode != null) { - filterDto.setPartnerTypeCode(partnerTypeCode.toLowerCase()); + if (partnerType != null) { + filterDto.setPartnerType(partnerType.toLowerCase()); } return partnerManagementService.getAllPartnerPolicyRequests(sortFieldName, sortType, pageNo, pageSize, filterDto); } diff --git a/partner/partner-management-service/src/main/java/io/mosip/pms/partner/manager/dto/PartnerPolicyRequestFilterDto.java b/partner/partner-management-service/src/main/java/io/mosip/pms/partner/manager/dto/PartnerPolicyRequestFilterDto.java index f74179d6ed..9de45ee7f6 100644 --- a/partner/partner-management-service/src/main/java/io/mosip/pms/partner/manager/dto/PartnerPolicyRequestFilterDto.java +++ b/partner/partner-management-service/src/main/java/io/mosip/pms/partner/manager/dto/PartnerPolicyRequestFilterDto.java @@ -5,7 +5,7 @@ @Data public class PartnerPolicyRequestFilterDto { private String partnerId; - private String partnerTypeCode; + private String partnerType; private String requestDetails; private String organizationName; private String policyId; diff --git a/partner/partner-management-service/src/main/java/io/mosip/pms/partner/manager/service/impl/PartnerManagementServiceImpl.java b/partner/partner-management-service/src/main/java/io/mosip/pms/partner/manager/service/impl/PartnerManagementServiceImpl.java index 948daa7471..80fe035100 100644 --- a/partner/partner-management-service/src/main/java/io/mosip/pms/partner/manager/service/impl/PartnerManagementServiceImpl.java +++ b/partner/partner-management-service/src/main/java/io/mosip/pms/partner/manager/service/impl/PartnerManagementServiceImpl.java @@ -916,7 +916,7 @@ public ResponseWrapperV2> getA } Page page = partnerPolicyMappingRequestRepository. - getSummaryOfAllPartnerPolicyRequests(filterDto.getPartnerId(), filterDto.getPartnerTypeCode(), + getSummaryOfAllPartnerPolicyRequests(filterDto.getPartnerId(), filterDto.getPartnerType(), filterDto.getOrganizationName(), filterDto.getPolicyId(), filterDto.getPolicyName(), filterDto.getStatus(), filterDto.getRequestDetails(), filterDto.getPolicyGroupName(), pageable);