Commit 9b56e345 by 吕明尚

Merge branch 'refs/heads/dev' into test

parents dac403ce e7d70189
......@@ -174,7 +174,7 @@ public class ConsumerWalletServiceImpl extends ServiceImpl<ConsumerWalletMapper,
.eq(MemberConfig::getMembershipLevel, one.getMembershipLevel() + 1L));
if (ObjectUtil.isNotEmpty(newOne) && one.getMembershipProgress().compareTo(BigDecimal.valueOf(newOne.getLimitRequirements())) >= 0) {
one.setMembershipLevel(one.getMembershipLevel() + 1L);
one.setMemberConfigId(one.getId());
one.setMemberConfigId(newOne.getId());
consumerMemberService.updateConsumerMember(one);
}
}
......
......@@ -10,6 +10,7 @@ import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import share.common.core.redis.RedisUtil;
import share.common.enums.MemberTypeEnum;
import share.common.enums.ReceiptRdeisEnum;
......@@ -159,6 +160,7 @@ public class EquityMembersOrderServiceImpl extends ServiceImpl<EquityMembersOrde
return equityMembersOrderMapper.getInfoByEntity(equityMembersOrderParam);
}
@Transactional(rollbackFor = Exception.class)
@Override
public void paymentSuccessful(EquityMembersOrder equityMembersOrder) {
ConsumerMember consumerMember = consumerMemberService.getOne(new LambdaQueryWrapper<ConsumerMember>().eq(ConsumerMember::getConsumerId, equityMembersOrder.getConsumerId()));
......
......@@ -149,6 +149,7 @@ public class RechargeServiceImpl extends ServiceImpl<RechargeMapper, Recharge> i
return baseMapper.getInfoByEntity(rechargeParam);
}
@Transactional(rollbackFor = Exception.class)
@Override
public void paymentSuccessful(Recharge recharge) {
ConsumerMember one = consumerMemberService.getOne(new LambdaQueryWrapper<ConsumerMember>().eq(ConsumerMember::getConsumerId, recharge.getConsumerId()));
......
......@@ -1812,6 +1812,7 @@ public class SOrderServiceImpl extends ServiceImpl<SOrderMapper, SOrder> impleme
return convertDosToVos(orderList);
}
@Transactional(rollbackFor = Exception.class)
@Override
public void paymentSuccessful(SOrder sOrder) {
unLockOrder(sOrder.getRoomId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment