diff --git a/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/SystemMsg.java b/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/SystemMsg.java index 9a3368d..fdd0162 100644 --- a/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/SystemMsg.java +++ b/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/SystemMsg.java @@ -36,7 +36,7 @@ public enum SystemMsg implements BaseMsg { * 菜单 */ EXCEPTION_MENU_PERMISSIONS_UNIQUE(20050,"权限重复,该权限编号已存在"), - + EXCEPTION_MENU_HANDLE_SELF(20051,"不可操作自身"), /** * 数据字典 diff --git a/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/menu/service/impl/MenuServiceImpl.java b/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/menu/service/impl/MenuServiceImpl.java index 3628440..9485900 100644 --- a/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/menu/service/impl/MenuServiceImpl.java +++ b/opsli-modulars/opsli-modulars-system/src/main/java/org/opsli/modulars/system/menu/service/impl/MenuServiceImpl.java @@ -60,8 +60,8 @@ import java.util.Set; @Service public class MenuServiceImpl extends CrudServiceImpl implements IMenuService { - /** 按钮类型 */ - private static final String BUTTON_TYPE = "2"; + /** 菜单管理ID */ + private static final String MENU_ID = "2"; @Autowired(required = false) private MenuMapper mapper; @@ -138,6 +138,15 @@ public class MenuServiceImpl extends CrudServiceImpl