|
@@ -141,7 +141,7 @@ public class StockWaitServiceImpl extends ServiceImpl<StockWaitMapper, StockWait
|
|
|
|
|
|
//更新待出入库明细,出入库数量,状态
|
|
|
BigDecimal receiptQuantity = stockWaitDetails.getReceiptQuantity().add(inOutQuantity);
|
|
|
- Integer stockWaitDetailsStatus = receiptQuantity.compareTo(stockWaitDetails.getQuantity()) > 0 ? 2 : 1;
|
|
|
+ Integer stockWaitDetailsStatus = receiptQuantity.compareTo(stockWaitDetails.getQuantity()) >= 0 ? 2 : 1;
|
|
|
stockWaitDetailsService.update(q -> q
|
|
|
.eq(StockWaitDetails::getId, stockWaitDetails.getId())
|
|
|
.set(StockWaitDetails::getReceiptQuantity, receiptQuantity)
|