|
|
@@ -677,20 +677,20 @@ public class PurchaseApCheckServiceImpl implements PurchaseApCheckService {
|
|
|
.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()
|
|
|
+ .filter(count -> currency.equals(count.getCurrency()))
|
|
|
+ .map(ApCheckAmount::getAmount).collect(Collectors.toList());
|
|
|
+ detail.setThisPeriodTodoAmount(thisPeriodTodoAmount.size() > 0 ? thisPeriodTodoAmount.get(0) : null);
|
|
|
+ }
|
|
|
+ if (!StringUtils.isEmpty(customer.getThisMonthDoneCount())) {
|
|
|
+ List<String> thisPeriodDoneAmount = customer.getThisMonthDoneCount().stream()
|
|
|
+ .filter(count -> currency.equals(count.getCurrency()))
|
|
|
+ .map(ApCheckAmount::getAmount).collect(Collectors.toList());
|
|
|
+ detail.setThisPeriodDoneAmount(thisPeriodDoneAmount.size() > 0 ? thisPeriodDoneAmount.get(0) : null);
|
|
|
+ }
|
|
|
+ detailList.add(detail);
|
|
|
}
|
|
|
- if (!StringUtils.isEmpty(customer.getThisMonthTodoCount())) {
|
|
|
- List<String> thisPeriodTodoAmount = customer.getThisMonthTodoCount().stream()
|
|
|
- .filter(count -> currency.equals(count.getCurrency()))
|
|
|
- .map(ApCheckAmount::getAmount).collect(Collectors.toList());
|
|
|
- detail.setThisPeriodTodoAmount(thisPeriodTodoAmount.size() > 0 ? thisPeriodTodoAmount.get(0) : null);
|
|
|
- }
|
|
|
- if (!StringUtils.isEmpty(customer.getThisMonthDoneCount())) {
|
|
|
- List<String> thisPeriodDoneAmount = customer.getThisMonthDoneCount().stream()
|
|
|
- .filter(count -> currency.equals(count.getCurrency()))
|
|
|
- .map(ApCheckAmount::getAmount).collect(Collectors.toList());
|
|
|
- detail.setThisPeriodDoneAmount(thisPeriodDoneAmount.size() > 0 ? thisPeriodDoneAmount.get(0) : null);
|
|
|
- }
|
|
|
- detailList.add(detail);
|
|
|
});
|
|
|
customer.setAmountDetailList(detailList);
|
|
|
}
|