| | |
| | | ); |
| | | if (items != null && items.size() > 0) { |
| | | for (OrderItem i : items) { |
| | | i.setStatus(Constants.CHECK_OPERATE.ok.name()); |
| | | i.setStatus(Constants.ORDER_ITEM_STATUS.ok.name()); |
| | | i.setCheckTime(LocalDateTime.now()); |
| | | orderItemMapper.updateById(i); |
| | | } |
| | |
| | | } |
| | | |
| | | BigDecimal deduct = new BigDecimal(0); |
| | | BigDecimal realPrice = oi.getRealPrice()==null?new BigDecimal(0):oi.getRealPrice(); |
| | | BigDecimal realPrice = getAmount(oi.getRealPrice()); |
| | | if(Constants.CHECK_TYPE.replace.name().equals(dto.getType())){ |
| | | deduct = oi.getSupplierPrice().multiply(new BigDecimal(dto.getNum())); |
| | | } else if(Constants.CHECK_TYPE.lack.name().equals(dto.getType())){ |