| | |
| | | */ |
| | | @Excel(name = "待出库数量") |
| | | private BigDecimal inboundNum0; |
| | | /** |
| | | * 出库数量 |
| | | */ |
| | | @Excel(name = "出库数量") |
| | | private BigDecimal totalInboundNum; |
| | | |
| | | /** |
| | | * 最低库存数量 |
| | |
| | | BigDecimal totalInboundNum = collect1.stream() |
| | | .map(ProcurementRecordOut::getInboundNum) |
| | | .reduce(BigDecimal.ZERO, BigDecimal::add); |
| | | |
| | | // 出库数量 = 总数量 - 待出库数量 |
| | | dto.setTotalInboundNum(totalInboundNum); |
| | | // 待出库数量 = 总数量 - 已出库数量 |
| | | dto.setInboundNum0(dto.getInboundNum().subtract(totalInboundNum)); |
| | | } |
| | |
| | | t1.inbound_batches, |
| | | t1.inbound_num, |
| | | t1.inbound_num as inboundNum0, |
| | | t1.inbound_num as totalInboundNum, |
| | | t1.create_time, |
| | | t1.update_time, |
| | | t1.create_by |