|
|
@ -166,6 +166,15 @@ public class BusSalesOrderDepositService extends MybatisBaseService<BusSalesOrde |
|
|
|
} else { |
|
|
|
listVo.setShowImage(false); |
|
|
|
} |
|
|
|
//简易订金所有的订金
|
|
|
|
if (StringUtils.isNotBlank(listVo.getDeposit())) { |
|
|
|
if (StringUtils.isNotBlank(listVo.getUsedDeposit())) { |
|
|
|
listVo.setRemainderMoney(new BigDecimal(listVo.getDeposit()).subtract(new BigDecimal(listVo.getUsedDeposit())).add(new BigDecimal(listVo.getPayMoney())).toString()); |
|
|
|
} else { |
|
|
|
listVo.setRemainderMoney(listVo.getDeposit()); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
vo.setVirtualOrderList(listVos); |
|
|
@ -269,7 +278,7 @@ public class BusSalesOrderDepositService extends MybatisBaseService<BusSalesOrde |
|
|
|
busDepositService.updateDeposit(depositAll, listDto.getDepositBillNo()); |
|
|
|
bigDecimalAll = bigDecimalAll.add(new BigDecimal(listDto.getPrice())); |
|
|
|
} |
|
|
|
if(bigDecimalAll.compareTo(new BigDecimal(dto.getDepositAll()))>0){ |
|
|
|
if (bigDecimalAll.compareTo(new BigDecimal(dto.getDepositAll())) > 0) { |
|
|
|
return rb.setMsg("结转金额大于订金合计,请重新选择"); |
|
|
|
} |
|
|
|
} |
|
|
|