mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-03 20:58:11 +08:00
add queryByQueueName
This commit is contained in:
parent
30a63a05aa
commit
4214d60ffa
@ -112,5 +112,8 @@ public interface QueueMapper {
|
||||
@SelectProvider(type = QueueMapperProvider.class, method = "queryByQueue")
|
||||
Queue queryByQueue(@Param("queue") String queue);
|
||||
|
||||
@SelectProvider(type = QueueMapperProvider.class, method = "queryByQueueName")
|
||||
Queue queryByQueueName(@Param("queueName") String queueName);
|
||||
|
||||
|
||||
}
|
||||
|
@ -170,4 +170,22 @@ public class QueueMapperProvider {
|
||||
}.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
* query by queue name
|
||||
*
|
||||
* @param parameter
|
||||
* @return
|
||||
*/
|
||||
public String queryByQueueName(Map<String, Object> parameter) {
|
||||
return new SQL() {
|
||||
{
|
||||
SELECT("*");
|
||||
|
||||
FROM(TABLE_NAME);
|
||||
|
||||
WHERE("`queue_name` = #{queueName}");
|
||||
}
|
||||
}.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user