From 8ba346faa6318bc78b5427a7feede5474c9e03d7 Mon Sep 17 00:00:00 2001 From: 朱杰 <693337446@qq.com> Date: 星期一, 31 五月 2021 17:23:13 +0800 Subject: [PATCH] update 修改框架中批量接口,改为原生mybatis执行foreach,改善性能 --- ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java | 20 ++++++++++++++++++-- 1 files changed, 18 insertions(+), 2 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java index c2619d3..54fe261 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java @@ -1,7 +1,7 @@ package com.ruoyi.system.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.ruoyi.common.core.domain.entity.SysDept; +import com.ruoyi.common.core.page.BaseMapperPlus; import org.apache.ibatis.annotations.Param; import java.util.List; @@ -11,7 +11,15 @@ * * @author ruoyi */ -public interface SysDeptMapper extends BaseMapper<SysDept> { +public interface SysDeptMapper extends BaseMapperPlus<SysDept> { + + /** + * 鏌ヨ閮ㄩ棬绠$悊鏁版嵁 + * + * @param dept 閮ㄩ棬淇℃伅 + * @return 閮ㄩ棬淇℃伅闆嗗悎 + */ + public List<SysDept> selectDeptList(SysDept dept); /** * 鏍规嵁瑙掕壊ID鏌ヨ閮ㄩ棬鏍戜俊鎭� @@ -22,4 +30,12 @@ */ public List<Integer> selectDeptListByRoleId(@Param("roleId") Long roleId, @Param("deptCheckStrictly") boolean deptCheckStrictly); + /** + * 淇敼瀛愬厓绱犲叧绯� + * + * @param depts 瀛愬厓绱� + * @return 缁撴灉 + */ + public int updateDeptChildren(@Param("depts") List<SysDept> depts); + } -- Gitblit v1.9.3