Skip to content

Commit

Permalink
MOSIP:38478 - changed partnerTypeCode field to partnerType
Browse files Browse the repository at this point in the history
Signed-off-by: sudeep <[email protected]>
  • Loading branch information
Sudeep7353 committed Dec 23, 2024
1 parent e2ed1a1 commit d47f310
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ public ResponseWrapperV2<PageResponseV2Dto<PartnerPolicyRequestSummaryDto>> 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();
Expand All @@ -369,8 +369,8 @@ public ResponseWrapperV2<PageResponseV2Dto<PartnerPolicyRequestSummaryDto>> 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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ public ResponseWrapperV2<PageResponseV2Dto<PartnerPolicyRequestSummaryDto>> getA
}

Page<PartnerPolicyRequestSummaryEntity> 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);
Expand Down

0 comments on commit d47f310

Please sign in to comment.