Commit 8ff25687 authored by yanzg's avatar yanzg

接口文档的支持

parent 3a4efb73
......@@ -207,8 +207,11 @@ public class MqServiceImpl implements MqService {
vo.setServerId(serverId);
vo.setQueueName(queueName);
vo.setQueueServer(localQueueName);
queueServerDao.create(vo);
if (queueServerTokenDao.load(vo, QueueServerVo.class) == null) {
queueServerDao.create(vo);
} else {
queueServerDao.update(vo);
}
return "创建成功";
}
......
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