|
@@ -73,6 +73,12 @@ public class PaymentDataService {
|
|
|
.filter(a -> a.getPlanDate().isBefore(paymentDataRequest.getEndDate()))
|
|
|
.collect(Collectors.toList());
|
|
|
}
|
|
|
+ //通过合同类型过滤
|
|
|
+ if(paymentDataRequest.getPaymentType() != null){
|
|
|
+ paymentDataModelList = paymentDataModelList.stream()
|
|
|
+ .filter(a -> a.getPaymentType() == paymentDataRequest.getPaymentType())
|
|
|
+ .collect(Collectors.toList());
|
|
|
+ }
|
|
|
}
|
|
|
return paymentDataModelList;
|
|
|
}
|
|
@@ -177,6 +183,10 @@ public class PaymentDataService {
|
|
|
}
|
|
|
Duration duration = Duration.between(afterDate, paymentDataModel.getPlanDate());
|
|
|
projectPaymentResponse.setDueToDays(duration.toDays());
|
|
|
+ //合同金额
|
|
|
+ double contractMoney = paymentDataModel.getContractMoney() != null
|
|
|
+ ? paymentDataModel.getContractMoney().doubleValue() : 0d;
|
|
|
+ projectPaymentResponse.setContractMoney(contractMoney);
|
|
|
}
|
|
|
});
|
|
|
//通过超期款倒序
|