|
|
@@ -19,7 +19,6 @@ import com.jzg.commons.entity.finance.dto.*;
|
|
|
import com.jzg.commons.entity.finance.po.*;
|
|
|
import com.jzg.commons.entity.finance.vo.*;
|
|
|
import com.jzg.commons.entity.orders.po.InsOrderAdjust;
|
|
|
-import com.jzg.commons.entity.orders.po.InsOrders;
|
|
|
import com.jzg.commons.entity.po.EsmInsCompany;
|
|
|
import com.jzg.commons.entity.po.InsFeeOrders;
|
|
|
import com.jzg.commons.entity.po.PtlAgreement;
|
|
|
@@ -222,7 +221,7 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
Page<InsPlyIncome> page = baseMapper.getReceivablePage(page1, receivableQueryVo);
|
|
|
List<InsPlyIncomeOrder> res = page.getRecords().stream()
|
|
|
.map(action -> new InsPlyIncomeOrder(action.getId(), action.getOrderNo())).toList();
|
|
|
- log.info("获取私有协议手续费应收列表的id集合。receivableQueryVo=[{}]. ids.size=[{}]", JSONUtil.toJsonStr(receivableQueryVo), CollUtil.size(res));
|
|
|
+ log.info("获取私有/平台协议手续费应收列表的id集合。receivableQueryVo=[{}]. ids.size=[{}]", JSONUtil.toJsonStr(receivableQueryVo), CollUtil.size(res));
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
@@ -238,6 +237,8 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
log.info("应收数据的二次过滤:incomeDataVO=[{}]", JSONUtil.toJsonStr(incomeDataVO));
|
|
|
List<String> orderNos = incomeDataVO.getOrderNos();
|
|
|
String companyId = incomeDataVO.getCompanyId();
|
|
|
+ String contactPerson = incomeDataVO.getContactPerson();
|
|
|
+ String contactPersonPhone = incomeDataVO.getContactPersonPhone();
|
|
|
// if(CollUtil.isEmpty(orderNos)){
|
|
|
// log.info("应收数据的二次过滤: 订单号不能为空");
|
|
|
// return HttpResult.error("请勾选要处理的订单信息");
|
|
|
@@ -263,6 +264,20 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
.collect(Collectors.toMap(IncomeDataVO.SearchVO::getName, Function.identity(), (ole_item, new_item) -> ole_item));
|
|
|
Set<String> names =searchVOMap.keySet();
|
|
|
|
|
|
+ Predicate<InsPlyIncome> contactPredicate = insPlyIncome -> {
|
|
|
+ if(!names.contains(IncomeDataVO.SearchVO.contactPerson)){
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ IncomeDataVO.SearchVO searchVO = searchVOMap.get(IncomeDataVO.SearchVO.contactPerson);
|
|
|
+ String type = searchVO.getType();
|
|
|
+ String search = searchVO.getSearch();
|
|
|
+ if("等于".equals(type)){
|
|
|
+ return search.equals(insPlyIncome.getContactPersonPhone());
|
|
|
+ }else if("不等于".equals(type)){
|
|
|
+ return !search.equals(insPlyIncome.getContactPersonPhone());
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ };
|
|
|
// 保险公司
|
|
|
Predicate<InsPlyIncome> companyIdPredicate = insPlyIncome -> {
|
|
|
if(!names.contains(IncomeDataVO.SearchVO.companyId)){
|
|
|
@@ -406,10 +421,10 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
return true;
|
|
|
};
|
|
|
if("and".equalsIgnoreCase(incomeDataVO.getLogicJudge())){
|
|
|
- Predicate<InsPlyIncome> and = companyIdPredicate.and(signDatePredicate).and(ptlAgreementPredicate).and(orderTypePredicate).and(signYearPredicate);
|
|
|
+ Predicate<InsPlyIncome> and = companyIdPredicate.and(signDatePredicate).and(ptlAgreementPredicate).and(orderTypePredicate).and(signYearPredicate).and(contactPredicate);
|
|
|
filterIncomes = incomes.stream().filter(and).toList();
|
|
|
}else if ("or".equalsIgnoreCase(incomeDataVO.getLogicJudge())){
|
|
|
- Predicate<InsPlyIncome> or = companyIdPredicate.or(signDatePredicate).or(ptlAgreementPredicate).or(orderTypePredicate).or(signYearPredicate);
|
|
|
+ Predicate<InsPlyIncome> or = companyIdPredicate.or(signDatePredicate).or(ptlAgreementPredicate).or(orderTypePredicate).or(signYearPredicate).or(contactPredicate);
|
|
|
filterIncomes = incomes.stream().filter(or).toList();
|
|
|
}
|
|
|
}
|