|
|
@ -244,18 +244,19 @@ public class BusSalesOrderDepositService extends MybatisBaseService<BusSalesOrde |
|
|
|
if ("01".equals(dto.getDepositTypeKey())) { |
|
|
|
//将需补交订金设置为null
|
|
|
|
baseMapper.updateMakeUpDeposit(depositSid); |
|
|
|
//查询该订金信息的结转信息中已结转的,再加回至简易订金单的已使用订金中
|
|
|
|
//根据订金sid查询虚拟订单和订金的关联
|
|
|
|
List<AppBusSalesOrderDepositListVo> listVos = busDepositFictitiousService.getList(busSalesOrderDeposit.getSid()); |
|
|
|
listVos.removeAll(Collections.singleton(null)); |
|
|
|
if (!listVos.isEmpty()) { |
|
|
|
for (AppBusSalesOrderDepositListVo listVo : listVos) { |
|
|
|
//查询该虚拟订金单已使用的订金值
|
|
|
|
String depositAll = busDepositFictitiousService.selectDeposit(listVo.getVirtualOrderId()); |
|
|
|
depositAll = new BigDecimal(depositAll).subtract(new BigDecimal(listVo.getPayMoney())).toString(); |
|
|
|
//更新该虚拟订单的订金值
|
|
|
|
busDepositService.updateDeposit(depositAll, listVo.getVirtualOrderId()); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
//查询该订金信息的结转信息中已结转的,再加回至简易订金单的已使用订金中
|
|
|
|
//根据订金sid查询虚拟订单和订金的关联
|
|
|
|
List<AppBusSalesOrderDepositListVo> listVos = busDepositFictitiousService.getList(busSalesOrderDeposit.getSid()); |
|
|
|
listVos.removeAll(Collections.singleton(null)); |
|
|
|
if (!listVos.isEmpty()) { |
|
|
|
for (AppBusSalesOrderDepositListVo listVo : listVos) { |
|
|
|
//查询该虚拟订金单已使用的订金值
|
|
|
|
String depositAll = busDepositFictitiousService.selectDeposit(listVo.getVirtualOrderId()); |
|
|
|
depositAll = new BigDecimal(depositAll).subtract(new BigDecimal(listVo.getPayMoney())).toString(); |
|
|
|
//更新该虚拟订单的订金值
|
|
|
|
busDepositService.updateDeposit(depositAll, listVo.getVirtualOrderId()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|