|  |  | 
 |  |  |             WOutboundInBodyBean wOutboundInBodyBean = wOutboundInBodyBeans.get(Constants.ZERO); | 
 |  |  |             //累计入库数量 | 
 |  |  |             wOutboundInBodyBean.setNum(wOutboundInBodyBeans.stream().map(s -> s.getNum()).reduce(BigDecimal.ZERO, BigDecimal::add)); | 
 |  |  |             if(wOutboundInBodyBean.getNum().compareTo(BigDecimal.ZERO)<=Constants.ZERO){ | 
 |  |  |                 throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(), "数量异常,请检查数量!"); | 
 |  |  |             } | 
 |  |  |             WOutboundDetail wOutboundDetail = new WOutboundDetail(); | 
 |  |  |             //查询物料数据 | 
 |  |  |             MaterialDistribute materialDistribute = materialDistributeMapper.selectById(wOutboundInBodyBean.getMaterialId()); |