From ce663f476e7134bb4f9e34d5491fc37be53cc09f Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期四, 21 三月 2024 11:30:39 +0800
Subject: [PATCH] 添加项目名称

---
 src/main/java/com/lf/server/mapper/data/DirMapper.java |   92 ++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 77 insertions(+), 15 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 57510de..edd4793 100644
--- a/src/main/java/com/lf/server/mapper/data/DirMapper.java
+++ b/src/main/java/com/lf/server/mapper/data/DirMapper.java
@@ -16,65 +16,127 @@
 @Repository
 public interface DirMapper {
     /**
-     * 娣诲姞鍗曟潯鏁版嵁
+     * 鎻掑叆涓�鏉�
+     *
      * @param dirEntity
      * @return
      */
-    public Integer insertDir(DirEntity dirEntity);
+    public Integer insert(DirEntity dirEntity);
 
     /**
-     * 鎵归噺娣诲姞
-     * @param dirEntity
+     * 鎻掑叆澶氭潯
+     *
+     * @param list
      * @return
      */
-    public Integer insertDirs(List<DirEntity> dirEntity);
+    public Integer inserts(List<DirEntity> list);
 
     /**
-     * 鍒犻櫎鍗曟潯鏁版嵁
+     * 鍒犻櫎涓�鏉�
+     *
      * @param id
      * @return
      */
     public Integer deleteDir(int id);
 
     /**
-     * 鎵归噺鍒犻櫎
+     * 鍒犻櫎澶氭潯
+     *
      * @param ids
      * @return
      */
     public Integer deleteDirs(List<Integer> ids);
 
     /**
-     * 淇敼鏁版嵁
+     * 鏇存柊涓�鏉�
+     *
      * @param dirEntity
      * @return
      */
-    public Integer updateDir(DirEntity dirEntity);
+    public Integer update(DirEntity dirEntity);
 
     /**
-     * 鎵归噺淇敼鏁版嵁
-     * @param dirEntity
+     * 鏇存柊澶氭潯
+     *
+     * @param list
      * @return
      */
-    public Integer updateDirs(List<DirEntity> dirEntity);
-
+    public Integer updates(List<DirEntity> list);
 
     /**
      * 鏌ヨ鍗曟潯鏁版嵁
+     *
      * @param id
      * @return
      */
     public DirEntity selectDir(int id);
 
     /**
+     * 鏍规嵁Code鏌ヨ鐩綍
+     *
+     * @param code
+     * @return
+     */
+    public DirEntity selectByCode(String code);
+
+    /**
      * 鏌ヨ澶氭潯鏁版嵁
+     *
      * @return
      */
     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);
+
+    /**
+     * 鏌ヨ椤圭洰鐩綍鏍�
+     *
+     * @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