This is an automated email from the ASF dual-hosted git repository.

SbloodyS pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 376d2149ce [Improvement-18249][DAO] Route QueueMapper access through 
QueueDao (#18263)
376d2149ce is described below

commit 376d2149ce0e423866a26261fe4c8305d36707bc
Author: Wenjun Ruan <[email protected]>
AuthorDate: Tue May 19 11:10:52 2026 +0800

    [Improvement-18249][DAO] Route QueueMapper access through QueueDao (#18263)
---
 .../operator/impl/YarnQueueAuditOperatorImpl.java  |  6 +--
 .../ResourcePermissionCheckServiceImpl.java        | 10 ++--
 .../api/service/impl/QueueServiceImpl.java         | 27 ++++++-----
 .../QueueResourcePermissionCheckTest.java          |  6 +--
 .../api/service/QueueServiceTest.java              | 26 +++++------
 .../dolphinscheduler/dao/repository/QueueDao.java  | 26 ++++-------
 .../dao/repository/impl/QueueDaoImpl.java          | 54 ++++++++++++++++++++++
 7 files changed, 99 insertions(+), 56 deletions(-)

diff --git 
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/audit/operator/impl/YarnQueueAuditOperatorImpl.java
 
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/audit/operator/impl/YarnQueueAuditOperatorImpl.java
index 25b15f09e1..efbaad1d95 100644
--- 
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/audit/operator/impl/YarnQueueAuditOperatorImpl.java
+++ 
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/audit/operator/impl/YarnQueueAuditOperatorImpl.java
@@ -19,7 +19,7 @@ package org.apache.dolphinscheduler.api.audit.operator.impl;
 
 import org.apache.dolphinscheduler.api.audit.operator.BaseAuditOperator;
 import org.apache.dolphinscheduler.dao.entity.Queue;
-import org.apache.dolphinscheduler.dao.mapper.QueueMapper;
+import org.apache.dolphinscheduler.dao.repository.QueueDao;
 
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
@@ -28,7 +28,7 @@ import org.springframework.stereotype.Service;
 public class YarnQueueAuditOperatorImpl extends BaseAuditOperator {
 
     @Autowired
-    private QueueMapper queueMapper;
+    private QueueDao queueDao;
 
     @Override
     public String getObjectNameFromIdentity(Object identity) {
@@ -37,7 +37,7 @@ public class YarnQueueAuditOperatorImpl extends 
BaseAuditOperator {
             return "";
         }
 
-        Queue obj = queueMapper.selectById(objId);
+        Queue obj = queueDao.queryById(objId);
         return obj == null ? "" : obj.getQueueName();
     }
 }
diff --git 
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/permission/ResourcePermissionCheckServiceImpl.java
 
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/permission/ResourcePermissionCheckServiceImpl.java
index 1acefe54c6..5f17af301e 100644
--- 
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/permission/ResourcePermissionCheckServiceImpl.java
+++ 
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/permission/ResourcePermissionCheckServiceImpl.java
@@ -36,11 +36,11 @@ import 
org.apache.dolphinscheduler.dao.mapper.AccessTokenMapper;
 import org.apache.dolphinscheduler.dao.mapper.AlertGroupMapper;
 import org.apache.dolphinscheduler.dao.mapper.AlertPluginInstanceMapper;
 import org.apache.dolphinscheduler.dao.mapper.EnvironmentMapper;
-import org.apache.dolphinscheduler.dao.mapper.QueueMapper;
 import org.apache.dolphinscheduler.dao.mapper.TaskGroupMapper;
 import org.apache.dolphinscheduler.dao.repository.DataSourceDao;
 import org.apache.dolphinscheduler.dao.repository.K8sNamespaceDao;
 import org.apache.dolphinscheduler.dao.repository.ProjectDao;
+import org.apache.dolphinscheduler.dao.repository.QueueDao;
 import org.apache.dolphinscheduler.dao.repository.TenantDao;
 import org.apache.dolphinscheduler.dao.repository.UserDao;
 import org.apache.dolphinscheduler.dao.repository.WorkerGroupDao;
@@ -126,10 +126,10 @@ public class ResourcePermissionCheckServiceImpl
     @Component
     public static class QueueResourcePermissionCheck implements 
ResourceAcquisitionAndPermissionCheck<Integer> {
 
-        private final QueueMapper queueMapper;
+        private final QueueDao queueDao;
 
-        public QueueResourcePermissionCheck(QueueMapper queueMapper) {
-            this.queueMapper = queueMapper;
+        public QueueResourcePermissionCheck(QueueDao queueDao) {
+            this.queueDao = queueDao;
         }
 
         @Override
@@ -147,7 +147,7 @@ public class ResourcePermissionCheckServiceImpl
             if (userId != 0) {
                 return Collections.emptySet();
             }
-            List<Queue> queues = queueMapper.selectList(null);
+            List<Queue> queues = queueDao.queryAll();
             return queues.stream().map(Queue::getId).collect(toSet());
         }
     }
diff --git 
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/QueueServiceImpl.java
 
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/QueueServiceImpl.java
index c7a46c2966..9db2fd9726 100644
--- 
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/QueueServiceImpl.java
+++ 
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/QueueServiceImpl.java
@@ -31,7 +31,7 @@ import org.apache.dolphinscheduler.common.enums.UserType;
 import org.apache.dolphinscheduler.dao.entity.Queue;
 import org.apache.dolphinscheduler.dao.entity.Tenant;
 import org.apache.dolphinscheduler.dao.entity.User;
-import org.apache.dolphinscheduler.dao.mapper.QueueMapper;
+import org.apache.dolphinscheduler.dao.repository.QueueDao;
 import org.apache.dolphinscheduler.dao.repository.TenantDao;
 import org.apache.dolphinscheduler.dao.repository.UserDao;
 
@@ -57,7 +57,7 @@ import 
com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 public class QueueServiceImpl extends BaseServiceImpl implements QueueService {
 
     @Autowired
-    private QueueMapper queueMapper;
+    private QueueDao queueDao;
 
     @Autowired
     private UserDao userDao;
@@ -124,7 +124,7 @@ public class QueueServiceImpl extends BaseServiceImpl 
implements QueueService {
             ids = ids.isEmpty() ? new HashSet<>() : ids;
             ids.add(Constants.DEFAULT_QUEUE_ID);
         }
-        return queueMapper.selectBatchIds(ids);
+        return queueDao.queryByIds(ids);
     }
 
     /**
@@ -145,7 +145,7 @@ public class QueueServiceImpl extends BaseServiceImpl 
implements QueueService {
             return pageInfo;
         }
         Page<Queue> page = new Page<>(pageNo, pageSize);
-        IPage<Queue> queueList = queueMapper.queryQueuePaging(page, new 
ArrayList<>(ids), searchVal);
+        IPage<Queue> queueList = queueDao.queryQueuePaging(page, new 
ArrayList<>(ids), searchVal);
         Integer count = (int) queueList.getTotal();
         pageInfo.setTotal(count);
         pageInfo.setTotalList(queueList.getRecords());
@@ -168,7 +168,7 @@ public class QueueServiceImpl extends BaseServiceImpl 
implements QueueService {
 
         Queue queueObj = new Queue(queueName, queue);
         validQueue(queueObj);
-        queueMapper.insert(queueObj);
+        queueDao.insert(queueObj);
 
         return queueObj;
     }
@@ -190,7 +190,7 @@ public class QueueServiceImpl extends BaseServiceImpl 
implements QueueService {
 
         Queue updateQueue = new Queue(id, queueName, queue);
         updateQueue.setCreateTime(null);
-        Queue existsQueue = queueMapper.selectById(id);
+        Queue existsQueue = queueDao.queryById(id);
         updateQueueValid(existsQueue, updateQueue);
 
         // check old queue using by any user
@@ -201,7 +201,7 @@ public class QueueServiceImpl extends BaseServiceImpl 
implements QueueService {
             log.info("Old queue have related {} users, exec update user 
success.", relatedUserNums);
         }
 
-        queueMapper.updateById(updateQueue);
+        queueDao.updateById(updateQueue);
         return updateQueue;
     }
 
@@ -220,7 +220,7 @@ public class QueueServiceImpl extends BaseServiceImpl 
implements QueueService {
             throw new ServiceException(Status.USER_NO_OPERATION_PERM);
         }
 
-        Queue queue = queueMapper.selectById(id);
+        Queue queue = queueDao.queryById(id);
         if (Objects.isNull(queue)) {
             log.error("Queue does not exist");
             throw new ServiceException(Status.QUEUE_NOT_EXIST);
@@ -238,8 +238,7 @@ public class QueueServiceImpl extends BaseServiceImpl 
implements QueueService {
             throw new ServiceException(Status.DELETE_QUEUE_BY_ID_FAIL_USERS, 
userList.size());
         }
 
-        int delete = queueMapper.deleteById(id);
-        if (delete <= 0) {
+        if (!queueDao.deleteById(id)) {
             throw new ServiceException(Status.DELETE_QUEUE_BY_ID_ERROR);
         }
 
@@ -267,7 +266,7 @@ public class QueueServiceImpl extends BaseServiceImpl 
implements QueueService {
      * @return true if the queue not exists, otherwise return false
      */
     private boolean checkQueueExist(String queue) {
-        return queueMapper.existQueue(queue, null) == Boolean.TRUE;
+        return queueDao.existQueue(queue, null);
     }
 
     /**
@@ -278,7 +277,7 @@ public class QueueServiceImpl extends BaseServiceImpl 
implements QueueService {
      * @return true if the queue name not exists, otherwise return false
      */
     private boolean checkQueueNameExist(String queueName) {
-        return queueMapper.existQueue(null, queueName) == Boolean.TRUE;
+        return queueDao.existQueue(null, queueName);
     }
 
     /**
@@ -304,14 +303,14 @@ public class QueueServiceImpl extends BaseServiceImpl 
implements QueueService {
      */
     @Override
     public Queue createQueueIfNotExists(String queue, String queueName) {
-        Queue existsQueue = queueMapper.queryQueueName(queue, queueName);
+        Queue existsQueue = queueDao.queryQueueName(queue, queueName);
         if (!Objects.isNull(existsQueue)) {
             log.info("Queue exists, so return it, queueName:{}.", queueName);
             return existsQueue;
         }
         Queue queueObj = new Queue(queueName, queue);
         validQueue(queueObj);
-        queueMapper.insert(queueObj);
+        queueDao.insert(queueObj);
         log.info("Queue create complete, queueName:{}.", 
queueObj.getQueueName());
         return queueObj;
     }
diff --git 
a/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/permission/QueueResourcePermissionCheckTest.java
 
b/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/permission/QueueResourcePermissionCheckTest.java
index 71502c694d..d2e3aa44aa 100644
--- 
a/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/permission/QueueResourcePermissionCheckTest.java
+++ 
b/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/permission/QueueResourcePermissionCheckTest.java
@@ -21,7 +21,7 @@ import 
org.apache.dolphinscheduler.common.enums.AuthorizationType;
 import org.apache.dolphinscheduler.common.enums.UserType;
 import org.apache.dolphinscheduler.dao.entity.Queue;
 import org.apache.dolphinscheduler.dao.entity.User;
-import org.apache.dolphinscheduler.dao.mapper.QueueMapper;
+import org.apache.dolphinscheduler.dao.repository.QueueDao;
 
 import java.util.Arrays;
 import java.util.Collections;
@@ -45,7 +45,7 @@ public class QueueResourcePermissionCheckTest {
     private ResourcePermissionCheckServiceImpl.QueueResourcePermissionCheck 
queueResourcePermissionCheck;
 
     @Mock
-    private QueueMapper queueMapper;
+    private QueueDao queueDao;
 
     @Test
     public void testPermissionCheck() {
@@ -62,7 +62,7 @@ public class QueueResourcePermissionCheckTest {
     @Test
     public void testListAuthorizedResourceIds() {
         Queue queue = new Queue();
-        
Mockito.when(queueMapper.selectList(null)).thenReturn(Arrays.asList(queue));
+        Mockito.when(queueDao.queryAll()).thenReturn(Arrays.asList(queue));
         // GENERAL_USER
         User user = getLoginUser();
         Assertions.assertEquals(0, 
queueResourcePermissionCheck.listAuthorizedResourceIds(user.getId(), 
logger).size());
diff --git 
a/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/QueueServiceTest.java
 
b/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/QueueServiceTest.java
index 252b0aa5c3..d111232b3e 100644
--- 
a/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/QueueServiceTest.java
+++ 
b/dolphinscheduler-api/src/test/java/org/apache/dolphinscheduler/api/service/QueueServiceTest.java
@@ -34,7 +34,7 @@ import 
org.apache.dolphinscheduler.common.enums.AuthorizationType;
 import org.apache.dolphinscheduler.common.enums.UserType;
 import org.apache.dolphinscheduler.dao.entity.Queue;
 import org.apache.dolphinscheduler.dao.entity.User;
-import org.apache.dolphinscheduler.dao.mapper.QueueMapper;
+import org.apache.dolphinscheduler.dao.repository.QueueDao;
 import org.apache.dolphinscheduler.dao.repository.UserDao;
 
 import org.apache.commons.collections4.CollectionUtils;
@@ -73,7 +73,7 @@ public class QueueServiceTest {
     private QueueServiceImpl queueService;
 
     @Mock
-    private QueueMapper queueMapper;
+    private QueueDao queueDao;
 
     @Mock
     private UserDao userDao;
@@ -101,7 +101,7 @@ public class QueueServiceTest {
         ids.add(1);
         
when(resourcePermissionCheckService.userOwnedResourceIdsAcquisition(AuthorizationType.QUEUE,
                 getLoginUser().getId(), 
queueServiceImplLogger)).thenReturn(ids);
-        
when(queueMapper.selectBatchIds(Mockito.anySet())).thenReturn(getQueueList());
+        when(queueDao.queryByIds(Mockito.anySet())).thenReturn(getQueueList());
         assertDoesNotThrow(() -> queueService.queryList(getLoginUser()));
 
     }
@@ -116,7 +116,7 @@ public class QueueServiceTest {
         ids.add(1);
         
when(resourcePermissionCheckService.userOwnedResourceIdsAcquisition(AuthorizationType.QUEUE,
                 getLoginUser().getId(), 
queueServiceImplLogger)).thenReturn(ids);
-        when(queueMapper.queryQueuePaging(Mockito.any(Page.class), 
Mockito.anyList(), Mockito.eq(QUEUE_NAME)))
+        when(queueDao.queryQueuePaging(Mockito.any(Page.class), 
Mockito.anyList(), Mockito.eq(QUEUE_NAME)))
                 .thenReturn(page);
         PageInfo<Queue> queuePageInfo = queueService.queryList(getLoginUser(), 
QUEUE_NAME, 1, 10);
         
Assertions.assertTrue(CollectionUtils.isNotEmpty(queuePageInfo.getTotalList()));
@@ -147,9 +147,9 @@ public class QueueServiceTest {
 
     @Test
     public void testUpdateQueue() {
-        when(queueMapper.selectById(1)).thenReturn(getQUEUE());
-        when(queueMapper.existQueue(EXISTS, null)).thenReturn(true);
-        when(queueMapper.existQueue(null, EXISTS)).thenReturn(true);
+        when(queueDao.queryById(1)).thenReturn(getQUEUE());
+        when(queueDao.existQueue(EXISTS, null)).thenReturn(true);
+        when(queueDao.existQueue(null, EXISTS)).thenReturn(true);
         
when(resourcePermissionCheckService.operationPermissionCheck(AuthorizationType.QUEUE,
                 getLoginUser().getId(), YARN_QUEUE_UPDATE, 
baseServiceLogger)).thenReturn(true);
         
when(resourcePermissionCheckService.resourcePermissionCheck(AuthorizationType.QUEUE,
 new Object[]{0}, 0,
@@ -187,11 +187,11 @@ public class QueueServiceTest {
         Assertions.assertNull(queue.getCreateTime());
 
         // success update with same queue name
-        when(queueMapper.existQueue(NOT_EXISTS_FINAL, null)).thenReturn(false);
+        when(queueDao.existQueue(NOT_EXISTS_FINAL, null)).thenReturn(false);
         assertDoesNotThrow(() -> queueService.updateQueue(getLoginUser(), 1, 
NOT_EXISTS_FINAL, NOT_EXISTS));
 
         // success update with same queue value
-        when(queueMapper.existQueue(null, NOT_EXISTS_FINAL)).thenReturn(false);
+        when(queueDao.existQueue(null, NOT_EXISTS_FINAL)).thenReturn(false);
         assertDoesNotThrow(() -> queueService.updateQueue(getLoginUser(), 1, 
NOT_EXISTS, NOT_EXISTS_FINAL));
     }
 
@@ -209,13 +209,13 @@ public class QueueServiceTest {
         Assertions.assertEquals(formatter, exception.getMessage());
 
         // exist queueName
-        when(queueMapper.existQueue(EXISTS, null)).thenReturn(true);
+        when(queueDao.existQueue(EXISTS, null)).thenReturn(true);
         exception = Assertions.assertThrows(ServiceException.class, () -> 
queueService.verifyQueue(EXISTS, QUEUE_NAME));
         formatter = MessageFormat.format(Status.QUEUE_VALUE_EXIST.getMsg(), 
EXISTS);
         Assertions.assertEquals(formatter, exception.getMessage());
 
         // exist queue
-        when(queueMapper.existQueue(null, EXISTS)).thenReturn(true);
+        when(queueDao.existQueue(null, EXISTS)).thenReturn(true);
         exception = Assertions.assertThrows(ServiceException.class, () -> 
queueService.verifyQueue(QUEUE, EXISTS));
         formatter = MessageFormat.format(Status.QUEUE_NAME_EXIST.getMsg(), 
EXISTS);
         Assertions.assertEquals(formatter, exception.getMessage());
@@ -229,12 +229,12 @@ public class QueueServiceTest {
         Queue queue;
 
         // queue exists
-        when(queueMapper.queryQueueName(QUEUE, 
QUEUE_NAME)).thenReturn(getQUEUE());
+        when(queueDao.queryQueueName(QUEUE, 
QUEUE_NAME)).thenReturn(getQUEUE());
         queue = queueService.createQueueIfNotExists(QUEUE, QUEUE_NAME);
         Assertions.assertEquals(getQUEUE(), queue);
 
         // queue not exists
-        when(queueMapper.queryQueueName(QUEUE, QUEUE_NAME)).thenReturn(null);
+        when(queueDao.queryQueueName(QUEUE, QUEUE_NAME)).thenReturn(null);
         queue = queueService.createQueueIfNotExists(QUEUE, QUEUE_NAME);
         Assertions.assertEquals(new Queue(QUEUE_NAME, QUEUE), queue);
     }
diff --git 
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/audit/operator/impl/YarnQueueAuditOperatorImpl.java
 
b/dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/repository/QueueDao.java
similarity index 54%
copy from 
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/audit/operator/impl/YarnQueueAuditOperatorImpl.java
copy to 
dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/repository/QueueDao.java
index 25b15f09e1..fe74b8df12 100644
--- 
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/audit/operator/impl/YarnQueueAuditOperatorImpl.java
+++ 
b/dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/repository/QueueDao.java
@@ -15,29 +15,19 @@
  * limitations under the License.
  */
 
-package org.apache.dolphinscheduler.api.audit.operator.impl;
+package org.apache.dolphinscheduler.dao.repository;
 
-import org.apache.dolphinscheduler.api.audit.operator.BaseAuditOperator;
 import org.apache.dolphinscheduler.dao.entity.Queue;
-import org.apache.dolphinscheduler.dao.mapper.QueueMapper;
 
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Service;
+import java.util.List;
 
-@Service
-public class YarnQueueAuditOperatorImpl extends BaseAuditOperator {
+import com.baomidou.mybatisplus.core.metadata.IPage;
 
-    @Autowired
-    private QueueMapper queueMapper;
+public interface QueueDao extends IDao<Queue> {
 
-    @Override
-    public String getObjectNameFromIdentity(Object identity) {
-        Long objId = toLong(identity);
-        if (objId == -1) {
-            return "";
-        }
+    IPage<Queue> queryQueuePaging(IPage<Queue> page, List<Integer> ids, String 
searchVal);
 
-        Queue obj = queueMapper.selectById(objId);
-        return obj == null ? "" : obj.getQueueName();
-    }
+    boolean existQueue(String queue, String queueName);
+
+    Queue queryQueueName(String queue, String queueName);
 }
diff --git 
a/dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/repository/impl/QueueDaoImpl.java
 
b/dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/repository/impl/QueueDaoImpl.java
new file mode 100644
index 0000000000..9e3f1bb6d2
--- /dev/null
+++ 
b/dolphinscheduler-dao/src/main/java/org/apache/dolphinscheduler/dao/repository/impl/QueueDaoImpl.java
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.dolphinscheduler.dao.repository.impl;
+
+import org.apache.dolphinscheduler.dao.entity.Queue;
+import org.apache.dolphinscheduler.dao.mapper.QueueMapper;
+import org.apache.dolphinscheduler.dao.repository.BaseDao;
+import org.apache.dolphinscheduler.dao.repository.QueueDao;
+
+import java.util.List;
+
+import lombok.NonNull;
+
+import org.springframework.stereotype.Repository;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+
+@Repository
+public class QueueDaoImpl extends BaseDao<Queue, QueueMapper> implements 
QueueDao {
+
+    public QueueDaoImpl(@NonNull QueueMapper queueMapper) {
+        super(queueMapper);
+    }
+
+    @Override
+    public IPage<Queue> queryQueuePaging(IPage<Queue> page, List<Integer> ids, 
String searchVal) {
+        return mybatisMapper.queryQueuePaging(page, ids, searchVal);
+    }
+
+    @Override
+    public boolean existQueue(String queue, String queueName) {
+        return Boolean.TRUE.equals(mybatisMapper.existQueue(queue, queueName));
+    }
+
+    @Override
+    public Queue queryQueueName(String queue, String queueName) {
+        return mybatisMapper.queryQueueName(queue, queueName);
+    }
+}

Reply via email to