From 0c8cd957630d43aa71183d34ecb1faf60689f8a4 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期三, 18 十二月 2024 11:30:15 +0800 Subject: [PATCH] 1 --- src/main/java/com/lf/server/mapper/data/DirMapper.java | 74 ++++++++++++++++++++++++++++++++++--- 1 files changed, 68 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/lf/server/mapper/data/DirMapper.java b/src/main/java/com/lf/server/mapper/data/DirMapper.java index c1f986a..9766c60 100644 --- a/src/main/java/com/lf/server/mapper/data/DirMapper.java +++ b/src/main/java/com/lf/server/mapper/data/DirMapper.java @@ -21,7 +21,7 @@ * @param dirEntity * @return */ - public Integer insertDir(DirEntity dirEntity); + public Integer insert(DirEntity dirEntity); /** * 鎻掑叆澶氭潯 @@ -29,7 +29,7 @@ * @param list * @return */ - public Integer insertDirs(List<DirEntity> list); + public Integer inserts(List<DirEntity> list); /** * 鍒犻櫎涓�鏉� @@ -53,7 +53,7 @@ * @param dirEntity * @return */ - public Integer updateDir(DirEntity dirEntity); + public Integer update(DirEntity dirEntity); /** * 鏇存柊澶氭潯 @@ -61,7 +61,7 @@ * @param list * @return */ - public Integer updateDirs(List<DirEntity> list); + public Integer updates(List<DirEntity> list); /** * 鏌ヨ鍗曟潯鏁版嵁 @@ -72,6 +72,14 @@ public DirEntity selectDir(int id); /** + * 鏍规嵁Code鏌ヨ鐩綍 + * + * @param code + * @return + */ + public DirEntity selectByCode(String code); + + /** * 鏌ヨ澶氭潯鏁版嵁 * * @return @@ -79,10 +87,64 @@ public List<DirEntity> selectDirAll(); /** - * 閫掑綊鏌ヨ + * 鏌ヨ鏍圭洰褰� + * + * @return + */ + public List<DirEntity> selectDirRoot(); + + /** + * 鏌ヨ椤圭洰 * * @param name * @return */ - public List<DirEntity> selectDirRecursive(String name); + public List<DirEntity> selectProject(String name); + + /** + * 閫掑綊鏌ヨ + * + * @param id + * @return + */ + public List<DirEntity> selectRecursiveById(Integer id); + + /** + * 閫掑綊鏌ヨ + * + * @param pid + * @return + */ + public List<DirEntity> selectByPid(int pid); + + /** + * 鏌ヨ椤圭洰鐩綍鏍� + * + * @return + */ + public List<DirEntity> selectDirsForPrj(); + + /** + * 鏍规嵁鐖禝D鏌ユ壘鏈�澶ф帓搴忓彿 + * + * @return + */ + public Integer selectMaxOrderNum(); + + /** + * 鏍规嵁鍚嶇О鏌ユ壘鐩綍 + * + * @param name + * @param pid + * @return + */ + public DirEntity selectDirByName(String name, Integer pid); + + /** + * 鏍规嵁缂栫爜鏌ヨ鍚嶇О + * + * @param code + * @return + */ + public String selectNameByCode(String code); } -- Gitblit v1.9.3