提交 efddb8fb authored 作者: huyufan's avatar huyufan

监听运单取消释放借款金额

上级 f3be918f
...@@ -156,10 +156,10 @@ public class EventListenerComponent { ...@@ -156,10 +156,10 @@ public class EventListenerComponent {
@EventListener(classes = {OrderChildCancelEvent.class}) @EventListener(classes = {OrderChildCancelEvent.class})
public void listen(OrderChildCancelEvent event) { public void listen(OrderChildCancelEvent event) {
log.info("OrderChildCancelEvent事件执行"); log.info("OrderChildCancelEvent事件执行");
List<String> childNoList = event.getChildNoList(); String childNo = event.getChildNo();
log.info("需要解冻借款的的运单号:{}", JSONUtil.parse(childNoList)); log.info("需要解冻借款的的运单号:{}", childNo);
List<OwnerLoanAccountRunningWaterRecord> runningWaterRecordList = ownerLoanAccountRunningWaterRecordDao.getListByChildNoAndRunningWaterType(childNoList, OwnerLoanAccountRunningWaterRecordEnum.RunWaterType.APPROVE_FROZEN.getCode()); List<OwnerLoanAccountRunningWaterRecord> runningWaterRecordList = ownerLoanAccountRunningWaterRecordDao.getListByChildNoAndRunningWaterType(childNo, OwnerLoanAccountRunningWaterRecordEnum.RunWaterType.APPROVE_FROZEN.getCode());
if (CollectionUtil.isEmpty(runningWaterRecordList)) { if (CollectionUtil.isEmpty(runningWaterRecordList)) {
return; return;
...@@ -172,7 +172,6 @@ public class EventListenerComponent { ...@@ -172,7 +172,6 @@ public class EventListenerComponent {
Long loanNo = record.getLoanNo(); Long loanNo = record.getLoanNo();
Integer loanType = record.getLoanType(); Integer loanType = record.getLoanType();
String ownerUserName = record.getOwnerUserName(); String ownerUserName = record.getOwnerUserName();
String childNo = record.getChildNo();
BigDecimal balance = record.getAlterationBalance(); BigDecimal balance = record.getAlterationBalance();
//解冻借款 //解冻借款
orderChildLoanComponent.thawOwnerLoanAccount(loanNo, loanType, ownerUserNo, record.getMobile(), ownerUserName, childNo, balance); orderChildLoanComponent.thawOwnerLoanAccount(loanNo, loanType, ownerUserNo, record.getMobile(), ownerUserName, childNo, balance);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论