Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vehicle-quality-review
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王飞
vehicle-quality-review
Commits
6cc681b4
Commit
6cc681b4
authored
Mar 11, 2024
by
盖献康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sys_menu表添加字段(二级菜单)、车企信息条件排序
parent
294f298e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
75 additions
and
47 deletions
+75
-47
AutomobileEnterpriseMapper.xml
.../src/main/resources/mapper/AutomobileEnterpriseMapper.xml
+0
-1
SysMenu.java
...ain/java/com/ruoyi/common/core/domain/entity/SysMenu.java
+17
-3
RouterVo.java
...em/src/main/java/com/ruoyi/system/domain/vo/RouterVo.java
+14
-1
SysMenuServiceImpl.java
...ava/com/ruoyi/system/service/impl/SysMenuServiceImpl.java
+27
-26
SysMenuMapper.xml
...system/src/main/resources/mapper/system/SysMenuMapper.xml
+17
-16
No files found.
quality-review/src/main/resources/mapper/AutomobileEnterpriseMapper.xml
View file @
6cc681b4
...
@@ -64,7 +64,6 @@
...
@@ -64,7 +64,6 @@
</if>
</if>
<if
test=
"contactNumber != null and contactNumber != ''"
>
and ae.contact_number like concat('%', #{contactNumber}, '%')
</if>
<if
test=
"contactNumber != null and contactNumber != ''"
>
and ae.contact_number like concat('%', #{contactNumber}, '%')
</if>
</where>
</where>
order by ae.create_time desc
</select>
</select>
<select
id=
"selectAutomobileEnterpriseById"
parameterType=
"Long"
resultMap=
"AutomobileEnterpriseResult"
>
<select
id=
"selectAutomobileEnterpriseById"
parameterType=
"Long"
resultMap=
"AutomobileEnterpriseResult"
>
...
...
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysMenu.java
View file @
6cc681b4
...
@@ -11,7 +11,7 @@ import com.ruoyi.common.core.domain.BaseEntity;
...
@@ -11,7 +11,7 @@ import com.ruoyi.common.core.domain.BaseEntity;
/**
/**
* 菜单权限表 sys_menu
* 菜单权限表 sys_menu
*
*
* @author ruoyi
* @author ruoyi
*/
*/
public
class
SysMenu
extends
BaseEntity
public
class
SysMenu
extends
BaseEntity
...
@@ -53,7 +53,7 @@ public class SysMenu extends BaseEntity
...
@@ -53,7 +53,7 @@ public class SysMenu extends BaseEntity
/** 显示状态(0显示 1隐藏) */
/** 显示状态(0显示 1隐藏) */
private
String
visible
;
private
String
visible
;
/** 菜单状态(0正常 1停用) */
/** 菜单状态(0正常 1停用) */
private
String
status
;
private
String
status
;
...
@@ -63,6 +63,19 @@ public class SysMenu extends BaseEntity
...
@@ -63,6 +63,19 @@ public class SysMenu extends BaseEntity
/** 菜单图标 */
/** 菜单图标 */
private
String
icon
;
private
String
icon
;
/**
* 二级菜单名称
*/
private
String
secondaryMenuName
;
public
String
getSecondaryMenuName
()
{
return
secondaryMenuName
;
}
public
void
setSecondaryMenuName
(
String
secondaryMenuName
)
{
this
.
secondaryMenuName
=
secondaryMenuName
;
}
/** 子菜单 */
/** 子菜单 */
private
List
<
SysMenu
>
children
=
new
ArrayList
<
SysMenu
>();
private
List
<
SysMenu
>
children
=
new
ArrayList
<
SysMenu
>();
...
@@ -232,7 +245,7 @@ public class SysMenu extends BaseEntity
...
@@ -232,7 +245,7 @@ public class SysMenu extends BaseEntity
{
{
this
.
children
=
children
;
this
.
children
=
children
;
}
}
@Override
@Override
public
String
toString
()
{
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
...
@@ -254,6 +267,7 @@ public class SysMenu extends BaseEntity
...
@@ -254,6 +267,7 @@ public class SysMenu extends BaseEntity
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"remark"
,
getRemark
())
.
append
(
"remark"
,
getRemark
())
.
append
(
"secondaryMenuName"
,
getSecondaryMenuName
())
.
toString
();
.
toString
();
}
}
}
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/RouterVo.java
View file @
6cc681b4
...
@@ -5,7 +5,7 @@ import java.util.List;
...
@@ -5,7 +5,7 @@ import java.util.List;
/**
/**
* 路由配置信息
* 路由配置信息
*
*
* @author ruoyi
* @author ruoyi
*/
*/
@JsonInclude
(
JsonInclude
.
Include
.
NON_EMPTY
)
@JsonInclude
(
JsonInclude
.
Include
.
NON_EMPTY
)
...
@@ -21,6 +21,11 @@ public class RouterVo
...
@@ -21,6 +21,11 @@ public class RouterVo
*/
*/
private
String
path
;
private
String
path
;
/**
* 二级菜单名称
*/
private
String
secondaryMenuName
;
/**
/**
* 是否隐藏路由,当设置 true 的时候该路由不会再侧边栏出现
* 是否隐藏路由,当设置 true 的时候该路由不会再侧边栏出现
*/
*/
...
@@ -56,6 +61,14 @@ public class RouterVo
...
@@ -56,6 +61,14 @@ public class RouterVo
*/
*/
private
List
<
RouterVo
>
children
;
private
List
<
RouterVo
>
children
;
public
String
getSecondaryMenuName
()
{
return
secondaryMenuName
;
}
public
void
setSecondaryMenuName
(
String
secondaryMenuName
)
{
this
.
secondaryMenuName
=
secondaryMenuName
;
}
public
String
getName
()
public
String
getName
()
{
{
return
name
;
return
name
;
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysMenuServiceImpl.java
View file @
6cc681b4
...
@@ -27,7 +27,7 @@ import com.ruoyi.system.service.ISysMenuService;
...
@@ -27,7 +27,7 @@ import com.ruoyi.system.service.ISysMenuService;
/**
/**
* 菜单 业务层处理
* 菜单 业务层处理
*
*
* @author ruoyi
* @author ruoyi
*/
*/
@Service
@Service
...
@@ -46,7 +46,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -46,7 +46,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 根据用户查询系统菜单列表
* 根据用户查询系统菜单列表
*
*
* @param userId 用户ID
* @param userId 用户ID
* @return 菜单列表
* @return 菜单列表
*/
*/
...
@@ -58,7 +58,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -58,7 +58,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 查询系统菜单列表
* 查询系统菜单列表
*
*
* @param menu 菜单信息
* @param menu 菜单信息
* @return 菜单列表
* @return 菜单列表
*/
*/
...
@@ -81,7 +81,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -81,7 +81,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 根据用户ID查询权限
* 根据用户ID查询权限
*
*
* @param userId 用户ID
* @param userId 用户ID
* @return 权限列表
* @return 权限列表
*/
*/
...
@@ -102,7 +102,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -102,7 +102,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 根据角色ID查询权限
* 根据角色ID查询权限
*
*
* @param roleId 角色ID
* @param roleId 角色ID
* @return 权限列表
* @return 权限列表
*/
*/
...
@@ -123,7 +123,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -123,7 +123,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 根据用户ID查询菜单
* 根据用户ID查询菜单
*
*
* @param userId 用户名称
* @param userId 用户名称
* @return 菜单列表
* @return 菜单列表
*/
*/
...
@@ -144,7 +144,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -144,7 +144,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 根据角色ID查询菜单树信息
* 根据角色ID查询菜单树信息
*
*
* @param roleId 角色ID
* @param roleId 角色ID
* @return 选中菜单列表
* @return 选中菜单列表
*/
*/
...
@@ -157,7 +157,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -157,7 +157,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 构建前端路由所需要的菜单
* 构建前端路由所需要的菜单
*
*
* @param menus 菜单列表
* @param menus 菜单列表
* @return 路由列表
* @return 路由列表
*/
*/
...
@@ -169,6 +169,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -169,6 +169,7 @@ public class SysMenuServiceImpl implements ISysMenuService
{
{
RouterVo
router
=
new
RouterVo
();
RouterVo
router
=
new
RouterVo
();
router
.
setHidden
(
"1"
.
equals
(
menu
.
getVisible
()));
router
.
setHidden
(
"1"
.
equals
(
menu
.
getVisible
()));
router
.
setSecondaryMenuName
(
menu
.
getSecondaryMenuName
());
router
.
setName
(
getRouteName
(
menu
));
router
.
setName
(
getRouteName
(
menu
));
router
.
setPath
(
getRouterPath
(
menu
));
router
.
setPath
(
getRouterPath
(
menu
));
router
.
setComponent
(
getComponent
(
menu
));
router
.
setComponent
(
getComponent
(
menu
));
...
@@ -215,7 +216,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -215,7 +216,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 构建前端所需要树结构
* 构建前端所需要树结构
*
*
* @param menus 菜单列表
* @param menus 菜单列表
* @return 树结构列表
* @return 树结构列表
*/
*/
...
@@ -243,7 +244,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -243,7 +244,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 构建前端所需要下拉树结构
* 构建前端所需要下拉树结构
*
*
* @param menus 菜单列表
* @param menus 菜单列表
* @return 下拉树结构列表
* @return 下拉树结构列表
*/
*/
...
@@ -256,7 +257,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -256,7 +257,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 根据菜单ID查询信息
* 根据菜单ID查询信息
*
*
* @param menuId 菜单ID
* @param menuId 菜单ID
* @return 菜单信息
* @return 菜单信息
*/
*/
...
@@ -268,7 +269,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -268,7 +269,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 是否存在菜单子节点
* 是否存在菜单子节点
*
*
* @param menuId 菜单ID
* @param menuId 菜单ID
* @return 结果
* @return 结果
*/
*/
...
@@ -281,7 +282,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -281,7 +282,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 查询菜单使用数量
* 查询菜单使用数量
*
*
* @param menuId 菜单ID
* @param menuId 菜单ID
* @return 结果
* @return 结果
*/
*/
...
@@ -294,7 +295,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -294,7 +295,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 新增保存菜单信息
* 新增保存菜单信息
*
*
* @param menu 菜单信息
* @param menu 菜单信息
* @return 结果
* @return 结果
*/
*/
...
@@ -306,7 +307,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -306,7 +307,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 修改保存菜单信息
* 修改保存菜单信息
*
*
* @param menu 菜单信息
* @param menu 菜单信息
* @return 结果
* @return 结果
*/
*/
...
@@ -318,7 +319,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -318,7 +319,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 删除菜单管理信息
* 删除菜单管理信息
*
*
* @param menuId 菜单ID
* @param menuId 菜单ID
* @return 结果
* @return 结果
*/
*/
...
@@ -330,7 +331,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -330,7 +331,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 校验菜单名称是否唯一
* 校验菜单名称是否唯一
*
*
* @param menu 菜单信息
* @param menu 菜单信息
* @return 结果
* @return 结果
*/
*/
...
@@ -348,7 +349,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -348,7 +349,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 获取路由名称
* 获取路由名称
*
*
* @param menu 菜单信息
* @param menu 菜单信息
* @return 路由名称
* @return 路由名称
*/
*/
...
@@ -365,7 +366,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -365,7 +366,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 获取路由地址
* 获取路由地址
*
*
* @param menu 菜单信息
* @param menu 菜单信息
* @return 路由地址
* @return 路由地址
*/
*/
...
@@ -393,7 +394,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -393,7 +394,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 获取组件信息
* 获取组件信息
*
*
* @param menu 菜单信息
* @param menu 菜单信息
* @return 组件信息
* @return 组件信息
*/
*/
...
@@ -417,7 +418,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -417,7 +418,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 是否为菜单内部跳转
* 是否为菜单内部跳转
*
*
* @param menu 菜单信息
* @param menu 菜单信息
* @return 结果
* @return 结果
*/
*/
...
@@ -429,7 +430,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -429,7 +430,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 是否为内链组件
* 是否为内链组件
*
*
* @param menu 菜单信息
* @param menu 菜单信息
* @return 结果
* @return 结果
*/
*/
...
@@ -440,7 +441,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -440,7 +441,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 是否为parent_view组件
* 是否为parent_view组件
*
*
* @param menu 菜单信息
* @param menu 菜单信息
* @return 结果
* @return 结果
*/
*/
...
@@ -451,7 +452,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -451,7 +452,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 根据父节点的ID获取所有子节点
* 根据父节点的ID获取所有子节点
*
*
* @param list 分类表
* @param list 分类表
* @param parentId 传入的父节点ID
* @param parentId 传入的父节点ID
* @return String
* @return String
...
@@ -474,7 +475,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -474,7 +475,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 递归列表
* 递归列表
*
*
* @param list 分类表
* @param list 分类表
* @param t 子节点
* @param t 子节点
*/
*/
...
@@ -520,7 +521,7 @@ public class SysMenuServiceImpl implements ISysMenuService
...
@@ -520,7 +521,7 @@ public class SysMenuServiceImpl implements ISysMenuService
/**
/**
* 内链域名特殊字符替换
* 内链域名特殊字符替换
*
*
* @return 替换后的内链域名
* @return 替换后的内链域名
*/
*/
public
String
innerLinkReplaceEach
(
String
path
)
public
String
innerLinkReplaceEach
(
String
path
)
...
...
ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml
View file @
6cc681b4
...
@@ -25,13 +25,14 @@
...
@@ -25,13 +25,14 @@
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"secondaryMenuName"
column=
"secondary_menu_name"
/>
</resultMap>
</resultMap>
<sql
id=
"selectMenuVo"
>
<sql
id=
"selectMenuVo"
>
select menu_id, menu_name, parent_id, order_num, path, component, `query`, is_frame, is_cache, menu_type, visible, status, ifnull(perms,'') as perms, icon, create_time
select menu_id, menu_name, parent_id, order_num, path, component, `query`, is_frame, is_cache, menu_type, visible, status, ifnull(perms,'') as perms, icon, create_time
, secondary_menu_name
from sys_menu
from sys_menu
</sql>
</sql>
<select
id=
"selectMenuList"
parameterType=
"SysMenu"
resultMap=
"SysMenuResult"
>
<select
id=
"selectMenuList"
parameterType=
"SysMenu"
resultMap=
"SysMenuResult"
>
<include
refid=
"selectMenuVo"
/>
<include
refid=
"selectMenuVo"
/>
<where>
<where>
...
@@ -47,13 +48,13 @@
...
@@ -47,13 +48,13 @@
</where>
</where>
order by parent_id, order_num
order by parent_id, order_num
</select>
</select>
<select
id=
"selectMenuTreeAll"
resultMap=
"SysMenuResult"
>
<select
id=
"selectMenuTreeAll"
resultMap=
"SysMenuResult"
>
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
, m.secondary_menu_name
from sys_menu m where m.menu_type in ('M', 'C') and m.status = 0
from sys_menu m where m.menu_type in ('M', 'C') and m.status = 0
order by m.parent_id, m.order_num
order by m.parent_id, m.order_num
</select>
</select>
<select
id=
"selectMenuListByUserId"
parameterType=
"SysMenu"
resultMap=
"SysMenuResult"
>
<select
id=
"selectMenuListByUserId"
parameterType=
"SysMenu"
resultMap=
"SysMenuResult"
>
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
from sys_menu m
from sys_menu m
...
@@ -72,7 +73,7 @@
...
@@ -72,7 +73,7 @@
</if>
</if>
order by m.parent_id, m.order_num
order by m.parent_id, m.order_num
</select>
</select>
<select
id=
"selectMenuTreeByUserId"
parameterType=
"Long"
resultMap=
"SysMenuResult"
>
<select
id=
"selectMenuTreeByUserId"
parameterType=
"Long"
resultMap=
"SysMenuResult"
>
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
select distinct m.menu_id, m.parent_id, m.menu_name, m.path, m.component, m.`query`, m.visible, m.status, ifnull(m.perms,'') as perms, m.is_frame, m.is_cache, m.menu_type, m.icon, m.order_num, m.create_time
from sys_menu m
from sys_menu m
...
@@ -83,7 +84,7 @@
...
@@ -83,7 +84,7 @@
where u.user_id = #{userId} and m.menu_type in ('M', 'C') and m.status = 0 AND ro.status = 0
where u.user_id = #{userId} and m.menu_type in ('M', 'C') and m.status = 0 AND ro.status = 0
order by m.parent_id, m.order_num
order by m.parent_id, m.order_num
</select>
</select>
<select
id=
"selectMenuListByRoleId"
resultType=
"Long"
>
<select
id=
"selectMenuListByRoleId"
resultType=
"Long"
>
select m.menu_id
select m.menu_id
from sys_menu m
from sys_menu m
...
@@ -94,7 +95,7 @@
...
@@ -94,7 +95,7 @@
</if>
</if>
order by m.parent_id, m.order_num
order by m.parent_id, m.order_num
</select>
</select>
<select
id=
"selectMenuPerms"
resultType=
"String"
>
<select
id=
"selectMenuPerms"
resultType=
"String"
>
select distinct m.perms
select distinct m.perms
from sys_menu m
from sys_menu m
...
@@ -110,28 +111,28 @@
...
@@ -110,28 +111,28 @@
left join sys_role r on r.role_id = ur.role_id
left join sys_role r on r.role_id = ur.role_id
where m.status = '0' and r.status = '0' and ur.user_id = #{userId}
where m.status = '0' and r.status = '0' and ur.user_id = #{userId}
</select>
</select>
<select
id=
"selectMenuPermsByRoleId"
parameterType=
"Long"
resultType=
"String"
>
<select
id=
"selectMenuPermsByRoleId"
parameterType=
"Long"
resultType=
"String"
>
select distinct m.perms
select distinct m.perms
from sys_menu m
from sys_menu m
left join sys_role_menu rm on m.menu_id = rm.menu_id
left join sys_role_menu rm on m.menu_id = rm.menu_id
where m.status = '0' and rm.role_id = #{roleId}
where m.status = '0' and rm.role_id = #{roleId}
</select>
</select>
<select
id=
"selectMenuById"
parameterType=
"Long"
resultMap=
"SysMenuResult"
>
<select
id=
"selectMenuById"
parameterType=
"Long"
resultMap=
"SysMenuResult"
>
<include
refid=
"selectMenuVo"
/>
<include
refid=
"selectMenuVo"
/>
where menu_id = #{menuId}
where menu_id = #{menuId}
</select>
</select>
<select
id=
"hasChildByMenuId"
resultType=
"Integer"
>
<select
id=
"hasChildByMenuId"
resultType=
"Integer"
>
select count(1) from sys_menu where parent_id = #{menuId}
select count(1) from sys_menu where parent_id = #{menuId}
</select>
</select>
<select
id=
"checkMenuNameUnique"
parameterType=
"SysMenu"
resultMap=
"SysMenuResult"
>
<select
id=
"checkMenuNameUnique"
parameterType=
"SysMenu"
resultMap=
"SysMenuResult"
>
<include
refid=
"selectMenuVo"
/>
<include
refid=
"selectMenuVo"
/>
where menu_name=#{menuName} and parent_id = #{parentId} limit 1
where menu_name=#{menuName} and parent_id = #{parentId} limit 1
</select>
</select>
<update
id=
"updateMenu"
parameterType=
"SysMenu"
>
<update
id=
"updateMenu"
parameterType=
"SysMenu"
>
update sys_menu
update sys_menu
<set>
<set>
...
@@ -194,9 +195,9 @@
...
@@ -194,9 +195,9 @@
sysdate()
sysdate()
)
)
</insert>
</insert>
<delete
id=
"deleteMenuById"
parameterType=
"Long"
>
<delete
id=
"deleteMenuById"
parameterType=
"Long"
>
delete from sys_menu where menu_id = #{menuId}
delete from sys_menu where menu_id = #{menuId}
</delete>
</delete>
</mapper>
</mapper>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment