From eb1af5f77f2c16e580173553e548ff4e41653e4e Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期三, 02 十一月 2022 17:02:13 +0800
Subject: [PATCH] 1

---
 src/main/java/com/lf/server/mapper/data/DictMapper.java |   58 ++++++++++++++++++++++++++++++----------------------------
 1 files changed, 30 insertions(+), 28 deletions(-)

diff --git a/src/main/java/com/lf/server/mapper/data/DictMapper.java b/src/main/java/com/lf/server/mapper/data/DictMapper.java
index 893ab54..c80cf36 100644
--- a/src/main/java/com/lf/server/mapper/data/DictMapper.java
+++ b/src/main/java/com/lf/server/mapper/data/DictMapper.java
@@ -8,8 +8,7 @@
 
 /**
  * 瀛楀吀绠$悊
- * @author sws
- * @date 2022-09-26
+ * @author WWW
  */
 @Mapper
 @Repository
@@ -17,28 +16,45 @@
     /**
      * 鏌ヨ璁板綍鏁�
      *
+     * @param ns  琛ㄧ┖闂�
      * @param tab 琛ㄥ悕
      * @return 璁板綍鏁�
      */
-    public Integer selectCount(String tab);
+    public Integer selectCount(String ns, String tab);
 
     /**
      * 鍒嗛〉鏌ヨ
      *
+     * @param ns     琛ㄧ┖闂�
      * @param tab    琛ㄥ悕
      * @param limit  璁板綍琛�
      * @param offset 鍋忕Щ閲�
      * @return 鍒楄〃
      */
-    public List<DictEntity> selectByPage(String tab, Integer limit, Integer offset);
+    public List<DictEntity> selectByPage(String ns, String tab, Integer limit, Integer offset);
+
+    /**
+     * 鏌ヨ鎵�鏈�
+     *
+     * @return
+     */
+    public List<DictEntity> selectAll();
+
+    /**
+     * 鏍规嵁ID鏌ヨ
+     *
+     * @param id
+     * @return
+     */
+    public DictEntity selectById(int id);
 
     /**
      * 鎻掑叆涓�鏉�
      *
-     * @param dictEntity
+     * @param entity
      * @return
      */
-    public Integer insertDict(DictEntity dictEntity);
+    public Integer insert(DictEntity entity);
 
     /**
      * 鎻掑叆澶氭潯
@@ -46,7 +62,7 @@
      * @param list
      * @return
      */
-    public Integer insertDicts(List<DictEntity> list);
+    public Integer inserts(List<DictEntity> list);
 
     /**
      * 鍒犻櫎涓�鏉�
@@ -54,7 +70,7 @@
      * @param id
      * @return
      */
-    public Integer deleteDict(int id);
+    public Integer delete(int id);
 
     /**
      * 鍒犻櫎澶氭潯
@@ -62,35 +78,21 @@
      * @param ids
      * @return
      */
-    public Integer deleteDicts(List<Integer> ids);
+    public Integer deletes(List<Integer> ids);
 
     /**
      * 鏇存柊涓�鏉�
      *
-     * @param dictEntity
+     * @param entity
      * @return
      */
-    public Integer updateDict(DictEntity dictEntity);
+    public Integer update(DictEntity entity);
 
     /**
-     * 鏌ヨ鍗曟潯鏁版嵁
+     * 鏇存柊澶氭潯
      *
-     * @param id
+     * @param list
      * @return
      */
-    public DictEntity selectDict(int id);
-
-    /**
-     * 鏌ヨ鎵�鏈�
-     *
-     * @return
-     */
-    public List<DictEntity> selectDictAll();
-
-    /**
-     * 鏌ヨ琛ㄦ牸涓枃鍚�
-     *
-     * @return
-     */
-    public List<DictEntity> selectDictTab();
+    public Integer updates(List<DictEntity> list);
 }

--
Gitblit v1.9.3