|
|
|
@ -1823,7 +1823,11 @@ public class DistributionReservationServiceImpl extends BaseServiceImpl<Distribu
|
|
|
|
|
if (Func.isEmpty(oleInventoryList.get(c))) { |
|
|
|
|
mallName.add(distributionStockListDTO.getMarketName()); |
|
|
|
|
mallId.add(distributionStockListDTO.getMarketId()); |
|
|
|
|
|
|
|
|
|
DistributionStockListEntity stockListEntity = distributionStockListService.getById(distributionStockListDTO.getId()); |
|
|
|
|
int keyongshuliang = stockListEntity.getQuantityStock() - stockListEntity.getQuantityOccupied(); |
|
|
|
|
if (distributionStockListDTO.getReservationNum() > keyongshuliang) { |
|
|
|
|
throw new RuntimeException("库存品库内数量不足!!!"); |
|
|
|
|
} |
|
|
|
|
//新增库存品
|
|
|
|
|
reservationStocklistEntity.setStocklistId(distributionStockListDTO.getId()); |
|
|
|
|
reservationStocklistEntity.setReservationId(id); |
|
|
|
|