提现防止多次

This commit is contained in:
seesaw
2024-11-18 10:43:46 +08:00
parent 244fbade81
commit 86bef94671
2 changed files with 9 additions and 0 deletions

View File

@ -412,6 +412,14 @@ public class WxProfitsharingServiceImpl implements WxProfitsharingService {
throw new ServiceException(ORDER_NOT_COMPLETE);
}
//判断用户是否正在退款
List<WxRefundDO> refundDOList1 = wxRefundMapper.selectList(Wrappers.<WxRefundDO>lambdaQuery()
.eq(WxRefundDO::getStatus, PayDivideRefundStatusRespEnum.PROCESSING.getStatus())
.eq(WxRefundDO::getUserId, drawMoneyVO.getUserId()));
if (CollectionUtil.isNotEmpty(refundDOList1)) {
throw new ServiceException(REFUND_NOT_COMPLETE);
}
//判断是否有金额可退款
BigDecimal wxAmount = wxProfitsharingMapper.getWxAmount(drawMoneyVO.getUserId());
if (wxAmount == null) {