|
|
@@ -3109,10 +3109,10 @@ public class OrderServiceImpl extends ServiceImpl<OrderMapper, PjOrder> implemen
|
|
|
&& ObjectUtils.isNull(e.getDot())).findFirst().orElse(null);
|
|
|
}
|
|
|
if (stockOne != null) {
|
|
|
- item.setRedeemNum(new BigDecimal("0"));
|
|
|
stockOne.setBalanceQuantityHave(stockOne.getBalanceQuantityHave().subtract(item.getRedeemNum()));
|
|
|
stockOne.setBalanceQuantityFinancing(stockOne.getBalanceQuantityFinancing().add(item.getRedeemNum()));
|
|
|
stockOne.setVersion(stockOne.getVersion());
|
|
|
+ item.setRedeemNum(new BigDecimal("0"));
|
|
|
pjStockDescArrayList.add(stockOne);
|
|
|
} else {
|
|
|
throw new RuntimeException("商品:" + goodsDesc.getCname() + "未查到库存账");
|