add queue error,checkQueueExist and checkQueueNameExist update (#997)
* add ConnectionFactoryTest and ConnectionFactory read datasource from appliction.yml * .escheduler_env.sh to dolphinscheduler_env.sh * dao yml assembly to conf directory * table name modify * entity title table name modify * logback log name modify * running through the big process * running through the big process error modify * logback log name modify * data_source.properties rename * logback log name modify * install.sh optimization * install.sh optimization * command count modify * command state update * countCommandState sql update * countCommandState sql update * remove application.yml file * master.properties modify * install.sh modify * install.sh modify * api server startup modify * the current user quits and the session is completely emptied. bug fix * remove pom package resources * checkQueueNameExist method update * checkQueueExist
This commit is contained in:
parent
91229993c7
commit
8f86582609
|
|
@ -238,22 +238,23 @@ public class QueueService extends BaseService {
|
|||
|
||||
/**
|
||||
* check queue exist
|
||||
*
|
||||
* if exists return true,not exists return false
|
||||
* check queue exist
|
||||
* @param queue
|
||||
* @return
|
||||
*/
|
||||
private boolean checkQueueExist(String queue) {
|
||||
return queueMapper.queryAllQueueList(queue, null).size()>0 ? false : true;
|
||||
return queueMapper.queryAllQueueList(queue, null).size()>0 ? true : false;
|
||||
}
|
||||
|
||||
/**
|
||||
* check queue name exist
|
||||
*
|
||||
* if exists return true,not exists return false
|
||||
* @param queueName
|
||||
* @return
|
||||
*/
|
||||
private boolean checkQueueNameExist(String queueName) {
|
||||
return queueMapper.queryAllQueueList(null ,queueName).size()>0 ? false : true;
|
||||
return queueMapper.queryAllQueueList(null ,queueName).size() > 0 ? true : false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue