Commit a41125e8 authored by hanfeng's avatar hanfeng

修改订单统计

parent b157e48f
......@@ -75,4 +75,6 @@ public class OrderVehicleCrosstownDto extends OrderVehicleCrosstown {
private List<String> typeList;
private Integer address;
}
\ No newline at end of file
......@@ -51,6 +51,7 @@ import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
import java.util.TimeZone;
import java.util.stream.Collectors;
import static com.xxfc.platform.universal.constant.DictionaryKey.APP_ORDER;
......@@ -119,6 +120,11 @@ public class OrderVehicleCrosstownBiz extends BaseBiz<OrderVehicaleCrosstownMapp
}
updateCrossRecord(value);
List<DepositRefundRecord> depositRefundRecords = orderDepositRefundRecordBiz.selectByCrossId(value.getId());
if (1==orderVehicleCrosstownDto.getAddress()&&CollectionUtil.isNotEmpty(depositRefundRecords)) {
depositRefundRecords = depositRefundRecords.parallelStream().filter(e -> e.getStatus() != 4 || e.getStatus() != 1).collect(Collectors.toList());
}
value.setDepositRefundRecord(depositRefundRecords == null || depositRefundRecords.size() <= 0 ? null : depositRefundRecords);
}
return list;
......
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