|
@@ -463,6 +463,31 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
}
|
|
}
|
|
|
return true;
|
|
return true;
|
|
|
};
|
|
};
|
|
|
|
|
+ // 保险公司
|
|
|
|
|
+ Predicate<InsPlyIncome> companySubIdPredicate = insPlyIncome -> {
|
|
|
|
|
+ if(!names.contains(IncomeDataVO.SearchVO.companyId)){
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
+ IncomeDataVO.SearchVO searchVO = searchVOMap.get(IncomeDataVO.SearchVO.companyId);
|
|
|
|
|
+ String type = searchVO.getType();
|
|
|
|
|
+ String search = searchVO.getSearch();
|
|
|
|
|
+ if("为空".equals(type)|| "不为空".equals(type)){
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
+ // 如果填写的查询条件,不完善,则该条件不进行过滤
|
|
|
|
|
+ if(StrUtil.isEmpty(search)){
|
|
|
|
|
+ return true;
|
|
|
|
|
+ }
|
|
|
|
|
+ if("等于".equalsIgnoreCase(type) || "包含".equalsIgnoreCase(type)){
|
|
|
|
|
+ List<String> companyIds = Arrays.asList(search.split(","));
|
|
|
|
|
+ return companyIds.contains(insPlyIncome.getPartnerCompanyId());
|
|
|
|
|
+ }
|
|
|
|
|
+ if("不等于".equalsIgnoreCase(type) || "不包含".equalsIgnoreCase(type)){
|
|
|
|
|
+ List<String> companyIds = Arrays.asList(search.split(","));
|
|
|
|
|
+ return !companyIds.contains(insPlyIncome.getPartnerCompanyId());
|
|
|
|
|
+ }
|
|
|
|
|
+ return true;
|
|
|
|
|
+ };
|
|
|
// 签单时间
|
|
// 签单时间
|
|
|
Predicate<InsPlyIncome> signDatePredicate = insPlyIncome -> {
|
|
Predicate<InsPlyIncome> signDatePredicate = insPlyIncome -> {
|
|
|
LocalDateTime signingTime = insPlyIncome.getSigningTime();
|
|
LocalDateTime signingTime = insPlyIncome.getSigningTime();
|
|
@@ -657,14 +682,14 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
return true;
|
|
return true;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ // add by lipf ,保险公司查询的时候,同时支持公司和子公司的查询 2026年7月29日10:30:05
|
|
|
if("and".equalsIgnoreCase(incomeDataVO.getLogicJudge())){
|
|
if("and".equalsIgnoreCase(incomeDataVO.getLogicJudge())){
|
|
|
- Predicate<InsPlyIncome> and = companyIdPredicate.and(signDatePredicate).
|
|
|
|
|
|
|
+ Predicate<InsPlyIncome> and = companyIdPredicate.or(companySubIdPredicate).and(signDatePredicate).
|
|
|
and(ptlAgreementPredicate).and(orderTypePredicate).and(signYearPredicate).and(licenseNoPredicate)
|
|
and(ptlAgreementPredicate).and(orderTypePredicate).and(signYearPredicate).and(licenseNoPredicate)
|
|
|
.and(contactPredicate).and(jqPolicyNoPredicate).and(syPolicyNoPredicate);
|
|
.and(contactPredicate).and(jqPolicyNoPredicate).and(syPolicyNoPredicate);
|
|
|
filterIncomes = incomes.stream().filter(and).toList();
|
|
filterIncomes = incomes.stream().filter(and).toList();
|
|
|
}else if ("or".equalsIgnoreCase(incomeDataVO.getLogicJudge())){
|
|
}else if ("or".equalsIgnoreCase(incomeDataVO.getLogicJudge())){
|
|
|
- Predicate<InsPlyIncome> or = companyIdPredicate.or(signDatePredicate).
|
|
|
|
|
|
|
+ Predicate<InsPlyIncome> or = companyIdPredicate.or(companySubIdPredicate).or(signDatePredicate).
|
|
|
or(ptlAgreementPredicate).or(orderTypePredicate).or(signYearPredicate).or(licenseNoPredicate)
|
|
or(ptlAgreementPredicate).or(orderTypePredicate).or(signYearPredicate).or(licenseNoPredicate)
|
|
|
.or(contactPredicate).or(jqPolicyNoPredicate).or(syPolicyNoPredicate);
|
|
.or(contactPredicate).or(jqPolicyNoPredicate).or(syPolicyNoPredicate);
|
|
|
filterIncomes = incomes.stream().filter(or).toList();
|
|
filterIncomes = incomes.stream().filter(or).toList();
|
|
@@ -1332,7 +1357,15 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
return invoiceType.equals(action.getInvoiceType());
|
|
return invoiceType.equals(action.getInvoiceType());
|
|
|
}).collect(Collectors.toMap(InsPlyIncomeInvoiceLink::getIncomeId, InsPlyIncomeInvoiceLink::getInvoiceId, (oleItem, newItem) -> oleItem));
|
|
}).collect(Collectors.toMap(InsPlyIncomeInvoiceLink::getIncomeId, InsPlyIncomeInvoiceLink::getInvoiceId, (oleItem, newItem) -> oleItem));
|
|
|
Map<String, String> typeAttrMaps = sysUserJzgInfoSalesmanService.queryYwyTypeAttrMap();
|
|
Map<String, String> typeAttrMaps = sysUserJzgInfoSalesmanService.queryYwyTypeAttrMap();
|
|
|
|
|
+
|
|
|
|
|
+ Map<String, String> allCompanyHierarchyPaths = esmInsCompanyClient.getAllCompanyHierarchyPaths();
|
|
|
|
|
+
|
|
|
records.forEach(insPlyIncome -> {
|
|
records.forEach(insPlyIncome -> {
|
|
|
|
|
+ if(StrUtil.isNotEmpty(insPlyIncome.getPartnerCompanyId())){
|
|
|
|
|
+ insPlyIncome.setPartnerCompanyName(allCompanyHierarchyPaths.getOrDefault(insPlyIncome.getPartnerCompanyId(),insPlyIncome.getPartnerCompanyId()));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
if("0".equals(insPlyIncome.getSettlementStatus())){
|
|
if("0".equals(insPlyIncome.getSettlementStatus())){
|
|
|
insPlyIncome.setSettlementStatusName("未结算");
|
|
insPlyIncome.setSettlementStatusName("未结算");
|
|
|
}else if("1".equals(insPlyIncome.getSettlementStatus())){
|
|
}else if("1".equals(insPlyIncome.getSettlementStatus())){
|