From 15375a1d0d07c61c132906ff8da45f67bcd711f6 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 17 十一月 2022 15:51:05 +0800 Subject: [PATCH] 1 --- src/main/java/com/lf/server/mapper/data/DictMapper.java | 84 +++++++++++++++++++++-------------------- 1 files changed, 43 insertions(+), 41 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 f0f2398..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,89 +8,91 @@ /** * 瀛楀吀绠$悊 - * @author sws - * @date 2022-09-26 + * @author WWW */ @Mapper @Repository public interface DictMapper { /** - * 鏍规嵁琛ㄥ悕鏌ヨ璁板綍鏁� + * 鏌ヨ璁板綍鏁� * + * @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); /** - * 娣诲姞鏁版嵁 + * 鏌ヨ鎵�鏈� * - * @param dictEntity * @return */ - public Integer insertDict(DictEntity dictEntity); + public List<DictEntity> selectAll(); /** - * 鎵归噺娣诲姞 - * - * @param dictEntity - * @return - */ - public Integer insertDicts(List<DictEntity> dictEntity); - - /** - * 鍒櫎鏁版嵁 + * 鏍规嵁ID鏌ヨ * * @param id * @return */ - public Integer deleteDict(int id); + public DictEntity selectById(int id); /** - * 鎵归噺鍒犻櫎 + * 鎻掑叆涓�鏉� + * + * @param entity + * @return + */ + public Integer insert(DictEntity entity); + + /** + * 鎻掑叆澶氭潯 + * + * @param list + * @return + */ + public Integer inserts(List<DictEntity> list); + + /** + * 鍒犻櫎涓�鏉� + * + * @param id + * @return + */ + public Integer delete(int id); + + /** + * 鍒犻櫎澶氭潯 * * @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