Commit 16fc207e by jianan

出账检核-增加币种15

parent ca228f3f
...@@ -1208,22 +1208,17 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService ...@@ -1208,22 +1208,17 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
.collect(Collectors.toMap(UserGradeDto::getClientUserBizId, Function.identity())); .collect(Collectors.toMap(UserGradeDto::getClientUserBizId, Function.identity()));
List<String> policyNoList = payableReportPage.getRecords().stream().map(PayableReportVO::getPolicyNo).collect(Collectors.toList()); List<String> policyNoList = payableReportPage.getRecords().stream().map(PayableReportVO::getPolicyNo).collect(Collectors.toList());
List<Policy> policyList = new ArrayList<>();
List<PolicyFollow> policyFollowList = new ArrayList<>(); List<PolicyFollow> policyFollowList = new ArrayList<>();
if (!CollectionUtils.isEmpty(policyNoList)) { if (!CollectionUtils.isEmpty(policyNoList)) {
policyList = policyService.lambdaQuery()
.in(Policy::getPolicyNo, policyNoList)
.list();
policyFollowList = policyFollowService.lambdaQuery() policyFollowList = policyFollowService.lambdaQuery()
.in(PolicyFollow::getPolicyNo, policyNoList) .in(PolicyFollow::getPolicyNo, policyNoList)
.list(); .list();
} }
Map<String, Policy> policyMap = policyList.stream()
.collect(Collectors.toMap(Policy::getPolicyNo, Function.identity()));
Map<String, PolicyFollow> policyFollowMap = policyFollowList.stream() Map<String, PolicyFollow> policyFollowMap = policyFollowList.stream()
.collect(Collectors.toMap(PolicyFollow::getPolicyNo, Function.identity())); .collect(Collectors.toMap(PolicyFollow::getPolicyNo, Function.identity()));
List<PayableReportVO> voList = payableReportPage.getRecords().stream().map(vo -> { List<PayableReportVO> voList = payableReportPage.getRecords().stream().map(vo -> {
Policy policy = policyMap.get(vo.getPolicyNo());
PolicyFollow policyFollow= policyFollowMap.get(vo.getPolicyNo()); PolicyFollow policyFollow= policyFollowMap.get(vo.getPolicyNo());
UserGradeDto userGradeDto= userGradeMap.get(vo.getBrokerBizId()); UserGradeDto userGradeDto= userGradeMap.get(vo.getBrokerBizId());
...@@ -1231,9 +1226,6 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService ...@@ -1231,9 +1226,6 @@ public class ApiExpectedFortuneServiceImpl implements ApiExpectedFortuneService
if (userGradeDto != null) { if (userGradeDto != null) {
vo.setBrokerGradeName(userGradeDto.getGradeName()); vo.setBrokerGradeName(userGradeDto.getGradeName());
} }
if (policy != null) {
vo.setPolicyCurrency(CurrencyEnum.toLabel(policy.getCurrency()));
}
if (policyFollow != null) { if (policyFollow != null) {
vo.setProductName(policyFollow.getProductName()); vo.setProductName(policyFollow.getProductName());
vo.setProductLaunchBizId(policyFollow.getProductLaunchBizId()); vo.setProductLaunchBizId(policyFollow.getProductLaunchBizId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment