作者 朱兆平

修复删除用户队列时,没有删除用户添加时对应的消费者组信息.造成再添加用户队列信息时,消费者组信息重复的BUG

... ... @@ -70,6 +70,8 @@ public class BusQueueServiceImpl implements BusQueueService {
BusQueue busQueue = selectByPrimaryKey(split[i]);
// 删除数据库中的该队列
int num = busQueueMapper.deleteByPrimaryKey(split[i]);
// 删除数据库中队列绑定的消费者组
consumerGroupMapper.deleteByPrimaryKey(id);
// 删除MQ服务器上的队列
//deleteQueue(busQueue);
// 级联删除数据库中与队列有关的配置关系
... ... @@ -86,6 +88,8 @@ public class BusQueueServiceImpl implements BusQueueService {
} else {
BusQueue busQueue = selectByPrimaryKey(id);
kafkaService.delTopic(busQueue.getQueueName());
//删除数据库中的对应的消费者组
consumerGroupMapper.deleteByPrimaryKey(id);
// 删除数据库中的该队列
int num = busQueueMapper.deleteByPrimaryKey(id);
// 删除MQ服务器上的队列
... ...