避免提现造成数据回滚

This commit is contained in:
kuang.yife 2023-04-25 00:14:34 +08:00
parent af4d4321fe
commit 8034d35fff
1 changed files with 4 additions and 3 deletions

View File

@ -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 ---------------------
} }