BigDecimal类型大于0
BigDecimal uq = e.getOutQuantity().subtract(e.getInvoicedQuantityNew()); if(uq.compareTo(BigDecimal.ZERO) > 0) { sif.setUninvoicedQuantity(uq);//未开票的数量 }else { sif.setUninvoicedQuantity(BigDecimal.ZERO); }
BigDecimal类型大于0
BigDecimal uq = e.getOutQuantity().subtract(e.getInvoicedQuantityNew()); if(uq.compareTo(BigDecimal.ZERO) > 0) { sif.setUninvoicedQuantity(uq);//未开票的数量 }else { sif.setUninvoicedQuantity(BigDecimal.ZERO); }