From 82f1f5d0cf1b51a5d81915e842e01760f404fa74 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子li <15040126243@163.com> Date: 星期三, 20 十月 2021 13:07:16 +0800 Subject: [PATCH] update 优化xxl-job-admin相关pr代码 增加格式化日志输出与docker镜像 --- ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysMenuMapper.java | 73 ++++-------------------------------- 1 files changed, 9 insertions(+), 64 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysMenuMapper.java b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysMenuMapper.java index d2c4638..8b5dcd6 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysMenuMapper.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysMenuMapper.java @@ -1,7 +1,7 @@ package com.ruoyi.system.mapper; -import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.ruoyi.common.core.domain.entity.SysMenu; +import com.ruoyi.common.core.mybatisplus.core.BaseMapperPlus; import org.apache.ibatis.annotations.Param; import java.util.List; @@ -9,23 +9,16 @@ /** * 鑿滃崟琛� 鏁版嵁灞� * - * @author ruoyi + * @author Lion Li */ -public interface SysMenuMapper extends BaseMapper<SysMenu> { - /** - * 鏌ヨ绯荤粺鑿滃崟鍒楄〃 - * - * @param menu 鑿滃崟淇℃伅 - * @return 鑿滃崟鍒楄〃 - */ - public List<SysMenu> selectMenuList(SysMenu menu); +public interface SysMenuMapper extends BaseMapperPlus<SysMenu> { /** * 鏍规嵁鐢ㄦ埛鎵�鏈夋潈闄� * * @return 鏉冮檺鍒楄〃 */ - public List<String> selectMenuPerms(); + List<String> selectMenuPerms(); /** * 鏍规嵁鐢ㄦ埛鏌ヨ绯荤粺鑿滃崟鍒楄〃 @@ -33,7 +26,7 @@ * @param menu 鑿滃崟淇℃伅 * @return 鑿滃崟鍒楄〃 */ - public List<SysMenu> selectMenuListByUserId(SysMenu menu); + List<SysMenu> selectMenuListByUserId(SysMenu menu); /** * 鏍规嵁鐢ㄦ埛ID鏌ヨ鏉冮檺 @@ -41,14 +34,14 @@ * @param userId 鐢ㄦ埛ID * @return 鏉冮檺鍒楄〃 */ - public List<String> selectMenuPermsByUserId(Long userId); + List<String> selectMenuPermsByUserId(Long userId); /** * 鏍规嵁鐢ㄦ埛ID鏌ヨ鑿滃崟 * * @return 鑿滃崟鍒楄〃 */ - public List<SysMenu> selectMenuTreeAll(); + List<SysMenu> selectMenuTreeAll(); /** * 鏍规嵁鐢ㄦ埛ID鏌ヨ鑿滃崟 @@ -56,7 +49,7 @@ * @param userId 鐢ㄦ埛ID * @return 鑿滃崟鍒楄〃 */ - public List<SysMenu> selectMenuTreeByUserId(Long userId); + List<SysMenu> selectMenuTreeByUserId(Long userId); /** * 鏍规嵁瑙掕壊ID鏌ヨ鑿滃崟鏍戜俊鎭� @@ -65,54 +58,6 @@ * @param menuCheckStrictly 鑿滃崟鏍戦�夋嫨椤规槸鍚﹀叧鑱旀樉绀� * @return 閫変腑鑿滃崟鍒楄〃 */ - public List<Integer> selectMenuListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly); + List<Integer> selectMenuListByRoleId(@Param("roleId") Long roleId, @Param("menuCheckStrictly") boolean menuCheckStrictly); - /** - * 鏍规嵁鑿滃崟ID鏌ヨ淇℃伅 - * - * @param menuId 鑿滃崟ID - * @return 鑿滃崟淇℃伅 - */ - public SysMenu selectMenuById(Long menuId); - - /** - * 鏄惁瀛樺湪鑿滃崟瀛愯妭鐐� - * - * @param menuId 鑿滃崟ID - * @return 缁撴灉 - */ - public int hasChildByMenuId(Long menuId); - - /** - * 鏂板鑿滃崟淇℃伅 - * - * @param menu 鑿滃崟淇℃伅 - * @return 缁撴灉 - */ - public int insertMenu(SysMenu menu); - - /** - * 淇敼鑿滃崟淇℃伅 - * - * @param menu 鑿滃崟淇℃伅 - * @return 缁撴灉 - */ - public int updateMenu(SysMenu menu); - - /** - * 鍒犻櫎鑿滃崟绠$悊淇℃伅 - * - * @param menuId 鑿滃崟ID - * @return 缁撴灉 - */ - public int deleteMenuById(Long menuId); - - /** - * 鏍¢獙鑿滃崟鍚嶇О鏄惁鍞竴 - * - * @param menuName 鑿滃崟鍚嶇О - * @param parentId 鐖惰彍鍗旾D - * @return 缁撴灉 - */ - public SysMenu checkMenuNameUnique(@Param("menuName") String menuName, @Param("parentId") Long parentId); } -- Gitblit v1.9.3