Commit 1d5d6540 authored by jiaorz's avatar jiaorz

Merge branch 'master-invoice-modular' into dev

parents b0db90cc 236d2c92
...@@ -800,11 +800,15 @@ public class OrderAccountBiz extends BaseBiz<OrderAccountMapper,OrderAccount> { ...@@ -800,11 +800,15 @@ public class OrderAccountBiz extends BaseBiz<OrderAccountMapper,OrderAccount> {
public BigDecimal getAllOrderCost(Integer orderId) { public BigDecimal getAllOrderCost(Integer orderId) {
List<OrderAccount> list = getByOrderId(orderId); List<OrderAccount> list = getByOrderId(orderId);
BigDecimal bigDecimal = new BigDecimal("0"); BigDecimal bigDecimal = new BigDecimal("0");
if (list != null && list.size() > 0) { if (list != null && list.size() > 0) {
list.parallelStream().forEach(result -> { list.parallelStream().forEach(result -> {
if(result.getAccountAmount() != null) { double amount = 0;
bigDecimal.add(new BigDecimal(result.getAccountAmount().toString())); if(result.getAccountAmount() != null && result.getAccountStatus() == 1) {
amount = amount + result.getAccountAmount().doubleValue();
} }
log.info("amount: {}", amount);
bigDecimal.add(new BigDecimal(amount+""));
}); });
} }
return bigDecimal; return bigDecimal;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment