Commit 236d2c92 authored by jiaorz's avatar jiaorz

发票

parent 01a45e82
......@@ -800,11 +800,15 @@ public class OrderAccountBiz extends BaseBiz<OrderAccountMapper,OrderAccount> {
public BigDecimal getAllOrderCost(Integer orderId) {
List<OrderAccount> list = getByOrderId(orderId);
BigDecimal bigDecimal = new BigDecimal("0");
if (list != null && list.size() > 0) {
list.parallelStream().forEach(result -> {
if(result.getAccountAmount() != null) {
bigDecimal.add(new BigDecimal(result.getAccountAmount().toString()));
double amount = 0;
if(result.getAccountAmount() != null && result.getAccountStatus() == 1) {
amount = amount + result.getAccountAmount().doubleValue();
}
log.info("amount: {}", amount);
bigDecimal.add(new BigDecimal(amount+""));
});
}
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