修改课程、会员延迟队列
This commit is contained in:
@@ -18,7 +18,7 @@ public class UserVipConsumer {
|
||||
@Autowired
|
||||
private MyUserDao userDao;
|
||||
|
||||
@RabbitListener(queues = DelayQueueConfig.USERVIP_DEAD_LETTER_QUEUE)
|
||||
@RabbitListener(queues = DelayQueueConfig.USERVIP_QUEUE)
|
||||
public void userVipConsumer(String userVipId) {
|
||||
UserVip userVip = userVipDao.selectById(userVipId);
|
||||
if(userVip == null){
|
||||
@@ -29,7 +29,7 @@ public class UserVipConsumer {
|
||||
MyUserEntity user = userDao.selectById(userVip.getUserId());
|
||||
user.setVip("0");
|
||||
userDao.updateById(user);
|
||||
System.out.println("vip更新完成");
|
||||
System.out.println(user.getName()+"-"+user.getTel()+"-"+user.getEmail()+"超v过期,vip更新完成");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user