避免提现造成数据回滚
This commit is contained in:
parent
af4d4321fe
commit
8034d35fff
|
|
@ -553,10 +553,11 @@ public class OrderDetailServiceImpl implements OrderDetailService {
|
||||||
logger.info("子订单[code={}]开始自动提现", odCode);
|
logger.info("子订单[code={}]开始自动提现", odCode);
|
||||||
if (BigDecimal.ZERO.compareTo(dtx) > -1) {
|
if (BigDecimal.ZERO.compareTo(dtx) > -1) {
|
||||||
logger.info("子订单[code={}] 待提现金额={} 无需提现", odCode, dtx);
|
logger.info("子订单[code={}] 待提现金额={} 无需提现", odCode, dtx);
|
||||||
|
}else {
|
||||||
|
// 待提现金额
|
||||||
|
String cashAmt = AdapayUtils.bigDecimalToString(dtx);
|
||||||
|
executor.execute(() -> drawCash(orderDetailId, financialDetail.getDeptId(), memberId, cashAmt));
|
||||||
}
|
}
|
||||||
// 待提现金额
|
|
||||||
String cashAmt = AdapayUtils.bigDecimalToString(dtx);
|
|
||||||
executor.execute(() -> drawCash(orderDetailId, financialDetail.getDeptId(), memberId, cashAmt));
|
|
||||||
// --------------------- 自动提现流程 end ---------------------
|
// --------------------- 自动提现流程 end ---------------------
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue