|
|
@@ -427,16 +427,12 @@ public class SysAgencyLeaderServiceImpl extends ServiceImpl<SysAgencyLeaderMappe
|
|
|
.in(InsAreaCompany::getOrderno, collect)
|
|
|
.eq(InsAreaCompany::getOrderstatus, 3));
|
|
|
if (insAreaCompanies.size() > 0) {
|
|
|
+ //累加每一个子订单的交强险费用+商业险费用+驾意险费用
|
|
|
BigDecimal jqpremium = insAreaCompanies.stream().map(InsAreaCompany::getJqpremium).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
BigDecimal sypremium = insAreaCompanies.stream().map(InsAreaCompany::getSypremium).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
BigDecimal jypremium = insAreaCompanies.stream().map(InsAreaCompany::getJypremium).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
|
|
|
bigDecimal = jqpremium.add(sypremium).add(jypremium);
|
|
|
-// for (InsAreaCompany insAreaCompany : insAreaCompanies) {
|
|
|
-// //累加每一个子订单的交强险费用+商业险费用+驾意险费用
|
|
|
-// bigDecimal = bigDecimal.add(insAreaCompany.getJqpremium()).add(insAreaCompany.getSypremium()).add(insAreaCompany.getJypremium());
|
|
|
-//
|
|
|
-// }
|
|
|
}
|
|
|
}
|
|
|
}
|