From fe0a4c0495cf9f1a65343158c2a8c2d4a163e045 Mon Sep 17 00:00:00 2001 From: qirong <2032486488@qq.com> Date: 星期二, 28 十一月 2023 21:16:21 +0800 Subject: [PATCH] 优化查询 --- src/main/java/com/mindskip/xzs/repository/DepartmentMapper.java | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/mindskip/xzs/repository/DepartmentMapper.java b/src/main/java/com/mindskip/xzs/repository/DepartmentMapper.java index a3efae5..5cabd55 100644 --- a/src/main/java/com/mindskip/xzs/repository/DepartmentMapper.java +++ b/src/main/java/com/mindskip/xzs/repository/DepartmentMapper.java @@ -1,8 +1,8 @@ package com.mindskip.xzs.repository; import com.mindskip.xzs.domain.Department; +import com.mindskip.xzs.viewmodel.admin.department.DepartmentResponseVM; import org.apache.ibatis.annotations.Mapper; -import org.w3c.dom.stylesheets.LinkStyle; import java.util.List; @@ -14,4 +14,10 @@ Integer update(Department department); List<Department> gets(); + + List<Department> page(DepartmentResponseVM departmentResponseVM); + + Department getName(String name); + + Department getById(Integer id); } -- Gitblit v1.8.0