|
|
@ -389,6 +389,8 @@ public class BaseVehicleActualSalesService extends MybatisBaseService<BaseVehicl |
|
|
|
if ("1".equals(dto.getIsPay())) { |
|
|
|
if (dto.getDetailsPayList().size() > 0) { |
|
|
|
payMoney = dto.getDetailsPayList().stream().map(BaseVehicleActualPayDto::getPayAccount).map(BigDecimal::new).reduce(BigDecimal.ZERO, BigDecimal::add); |
|
|
|
}else{ |
|
|
|
return rb.setMsg("付款明细不能为空"); |
|
|
|
} |
|
|
|
} |
|
|
|
if (payMoney.compareTo(salesMoney) > 0) { |
|
|
|