|
|
@@ -330,10 +330,16 @@ public class ReceivableServiceImpl extends ServiceImpl<ReceivableMapper, InsPlyI
|
|
|
BigDecimal totalAmount = BigDecimal.ZERO;
|
|
|
if ("3".equals(receivableQueryVo.getInvoiceType())){
|
|
|
totalAmount = page.getRecords().stream()
|
|
|
- .map(action -> new BigDecimal(Objects.toString(action.getJySuperviseCostsPremiums(), "0"))).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
+ .map(action -> new BigDecimal(Objects.toString(action.getNonCarInsuranceSuperviseCostsPremiums(), "0"))).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
} else if ("4".equals(receivableQueryVo.getInvoiceType())){
|
|
|
totalAmount = page.getRecords().stream()
|
|
|
- .map(action -> new BigDecimal(Objects.toString(action.getJyOtherCostsPremiums(), "0"))).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
+ .map(action -> new BigDecimal(Objects.toString(action.getNonCarInsuranceOtherCostsPremiums(), "0"))).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
+ }else if ("1".equals(receivableQueryVo.getInvoiceType())){
|
|
|
+ totalAmount = page.getRecords().stream()
|
|
|
+ .map(action -> new BigDecimal(Objects.toString(action.getCarInsuranceSuperviseCostsPremiums(), "0"))).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
+ }else if ("2".equals(receivableQueryVo.getInvoiceType())){
|
|
|
+ totalAmount = page.getRecords().stream()
|
|
|
+ .map(action -> new BigDecimal(Objects.toString(action.getCarInsuranceOtherCostsPremiums(), "0"))).reduce(BigDecimal.ZERO, BigDecimal::add);
|
|
|
}else{
|
|
|
totalAmount = page.getRecords().stream()
|
|
|
.map(action -> new BigDecimal(Objects.toString(action.getReceivableAmount(), "0"))).reduce(BigDecimal.ZERO, BigDecimal::add);
|