|
|
@@ -665,16 +665,16 @@ public class PurchaseApCheckServiceImpl implements PurchaseApCheckService {
|
|
|
List<ApCheckAmountDetail> detailList = new ArrayList<>();
|
|
|
currencySet.forEach(currency -> {
|
|
|
ApCheckAmountDetail detail = new ApCheckAmountDetail();
|
|
|
- List<String> totalAmount = customer.getTotalCount().stream()
|
|
|
- .filter(count -> currency.equals(count.getCurrency()))
|
|
|
- .map(ApCheckAmount::getAmount).collect(Collectors.toList());
|
|
|
- detail.setTotalAmount(totalAmount.size() > 0 ? totalAmount.get(0) : null);
|
|
|
- detail.setCurrency(currency);
|
|
|
if (!StringUtils.isEmpty(customer.getThisMonthCount())) {
|
|
|
List<String> thisPeriodAmount = customer.getThisMonthCount().stream()
|
|
|
.filter(count -> currency.equals(count.getCurrency()))
|
|
|
.map(ApCheckAmount::getAmount).collect(Collectors.toList());
|
|
|
detail.setThisPeriodAmount(thisPeriodAmount.size() > 0 ? thisPeriodAmount.get(0) : null);
|
|
|
+ List<String> totalAmount = customer.getTotalCount().stream()
|
|
|
+ .filter(count -> currency.equals(count.getCurrency()))
|
|
|
+ .map(ApCheckAmount::getAmount).collect(Collectors.toList());
|
|
|
+ detail.setTotalAmount(totalAmount.size() > 0 ? totalAmount.get(0) : null);
|
|
|
+ detail.setCurrency(currency);
|
|
|
}
|
|
|
if (!StringUtils.isEmpty(customer.getThisMonthTodoCount())) {
|
|
|
List<String> thisPeriodTodoAmount = customer.getThisMonthTodoCount().stream()
|