From 6502f2107229bd0e19a0ce5dd748b9e6e5e11367 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期五, 26 十一月 2021 13:57:28 +0800
Subject: [PATCH] update 修改不规范命名
---
ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDeptService.java | 36 ++++++++++++++----------------------
1 files changed, 14 insertions(+), 22 deletions(-)
diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDeptService.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDeptService.java
index 38bccc9..bd8c5ff 100644
--- a/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDeptService.java
+++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/ISysDeptService.java
@@ -1,7 +1,7 @@
package com.ruoyi.system.service;
+import cn.hutool.core.lang.tree.Tree;
import com.baomidou.mybatisplus.extension.service.IService;
-import com.ruoyi.common.core.domain.TreeSelect;
import com.ruoyi.common.core.domain.entity.SysDept;
import java.util.List;
@@ -9,7 +9,7 @@
/**
* 閮ㄩ棬绠$悊 鏈嶅姟灞�
*
- * @author ruoyi
+ * @author Lion Li
*/
public interface ISysDeptService extends IService<SysDept> {
/**
@@ -18,15 +18,7 @@
* @param dept 閮ㄩ棬淇℃伅
* @return 閮ㄩ棬淇℃伅闆嗗悎
*/
- public List<SysDept> selectDeptList(SysDept dept);
-
- /**
- * 鏋勫缓鍓嶇鎵�闇�瑕佹爲缁撴瀯
- *
- * @param depts 閮ㄩ棬鍒楄〃
- * @return 鏍戠粨鏋勫垪琛�
- */
- public List<SysDept> buildDeptTree(List<SysDept> depts);
+ List<SysDept> selectDeptList(SysDept dept);
/**
* 鏋勫缓鍓嶇鎵�闇�瑕佷笅鎷夋爲缁撴瀯
@@ -34,7 +26,7 @@
* @param depts 閮ㄩ棬鍒楄〃
* @return 涓嬫媺鏍戠粨鏋勫垪琛�
*/
- public List<TreeSelect> buildDeptTreeSelect(List<SysDept> depts);
+ List<Tree<Long>> buildDeptTreeSelect(List<SysDept> depts);
/**
* 鏍规嵁瑙掕壊ID鏌ヨ閮ㄩ棬鏍戜俊鎭�
@@ -42,7 +34,7 @@
* @param roleId 瑙掕壊ID
* @return 閫変腑閮ㄩ棬鍒楄〃
*/
- public List<Integer> selectDeptListByRoleId(Long roleId);
+ List<Integer> selectDeptListByRoleId(Long roleId);
/**
* 鏍规嵁閮ㄩ棬ID鏌ヨ淇℃伅
@@ -50,7 +42,7 @@
* @param deptId 閮ㄩ棬ID
* @return 閮ㄩ棬淇℃伅
*/
- public SysDept selectDeptById(Long deptId);
+ SysDept selectDeptById(Long deptId);
/**
* 鏍规嵁ID鏌ヨ鎵�鏈夊瓙閮ㄩ棬锛堟甯哥姸鎬侊級
@@ -58,7 +50,7 @@
* @param deptId 閮ㄩ棬ID
* @return 瀛愰儴闂ㄦ暟
*/
- public long selectNormalChildrenDeptById(Long deptId);
+ long selectNormalChildrenDeptById(Long deptId);
/**
* 鏄惁瀛樺湪閮ㄩ棬瀛愯妭鐐�
@@ -66,7 +58,7 @@
* @param deptId 閮ㄩ棬ID
* @return 缁撴灉
*/
- public boolean hasChildByDeptId(Long deptId);
+ boolean hasChildByDeptId(Long deptId);
/**
* 鏌ヨ閮ㄩ棬鏄惁瀛樺湪鐢ㄦ埛
@@ -74,7 +66,7 @@
* @param deptId 閮ㄩ棬ID
* @return 缁撴灉 true 瀛樺湪 false 涓嶅瓨鍦�
*/
- public boolean checkDeptExistUser(Long deptId);
+ boolean checkDeptExistUser(Long deptId);
/**
* 鏍¢獙閮ㄩ棬鍚嶇О鏄惁鍞竴
@@ -82,14 +74,14 @@
* @param dept 閮ㄩ棬淇℃伅
* @return 缁撴灉
*/
- public String checkDeptNameUnique(SysDept dept);
+ String checkDeptNameUnique(SysDept dept);
/**
* 鏍¢獙閮ㄩ棬鏄惁鏈夋暟鎹潈闄�
*
* @param deptId 閮ㄩ棬id
*/
- public void checkDeptDataScope(Long deptId);
+ void checkDeptDataScope(Long deptId);
/**
* 鏂板淇濆瓨閮ㄩ棬淇℃伅
@@ -97,7 +89,7 @@
* @param dept 閮ㄩ棬淇℃伅
* @return 缁撴灉
*/
- public int insertDept(SysDept dept);
+ int insertDept(SysDept dept);
/**
* 淇敼淇濆瓨閮ㄩ棬淇℃伅
@@ -105,7 +97,7 @@
* @param dept 閮ㄩ棬淇℃伅
* @return 缁撴灉
*/
- public int updateDept(SysDept dept);
+ int updateDept(SysDept dept);
/**
* 鍒犻櫎閮ㄩ棬绠$悊淇℃伅
@@ -113,5 +105,5 @@
* @param deptId 閮ㄩ棬ID
* @return 缁撴灉
*/
- public int deleteDeptById(Long deptId);
+ int deleteDeptById(Long deptId);
}
--
Gitblit v1.9.3