提现防止多次
This commit is contained in:
@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user