|
|
|
@ -215,11 +215,7 @@ public class QueueService extends BaseService {
|
|
|
|
|
putMsg(result, Status.REQUEST_PARAMS_NOT_VALID_ERROR, queueName); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
if(checkQueueExist(queue)){ |
|
|
|
|
logger.error("queue value {} has exist, can't create again.", queue); |
|
|
|
|
putMsg(result, Status.QUEUE_VALUE_EXIST, queue); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(checkQueueNameExist(queueName)){ |
|
|
|
|
logger.error("queue name {} has exist, can't create again.", queueName); |
|
|
|
@ -227,6 +223,12 @@ public class QueueService extends BaseService {
|
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(checkQueueExist(queue)){ |
|
|
|
|
logger.error("queue value {} has exist, can't create again.", queue); |
|
|
|
|
putMsg(result, Status.QUEUE_VALUE_EXIST, queue); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
putMsg(result, Status.SUCCESS); |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|