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
Show 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 @@
</if>
<if
test=
"contactNumber != null and contactNumber != ''"
>
and ae.contact_number like concat('%', #{contactNumber}, '%')
</if>
</where>
order by ae.create_time desc
</select>
<select
id=
"selectAutomobileEnterpriseById"
parameterType=
"Long"
resultMap=
"AutomobileEnterpriseResult"
>
...
...
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysMenu.java
View file @
6cc681b4
...
...
@@ -63,6 +63,19 @@ public class SysMenu extends BaseEntity
/** 菜单图标 */
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
>();
...
...
@@ -254,6 +267,7 @@ public class SysMenu extends BaseEntity
.
append
(
"updateBy"
,
getUpdateBy
())
.
append
(
"updateTime"
,
getUpdateTime
())
.
append
(
"remark"
,
getRemark
())
.
append
(
"secondaryMenuName"
,
getSecondaryMenuName
())
.
toString
();
}
}
ruoyi-system/src/main/java/com/ruoyi/system/domain/vo/RouterVo.java
View file @
6cc681b4
...
...
@@ -21,6 +21,11 @@ public class RouterVo
*/
private
String
path
;
/**
* 二级菜单名称
*/
private
String
secondaryMenuName
;
/**
* 是否隐藏路由,当设置 true 的时候该路由不会再侧边栏出现
*/
...
...
@@ -56,6 +61,14 @@ public class RouterVo
*/
private
List
<
RouterVo
>
children
;
public
String
getSecondaryMenuName
()
{
return
secondaryMenuName
;
}
public
void
setSecondaryMenuName
(
String
secondaryMenuName
)
{
this
.
secondaryMenuName
=
secondaryMenuName
;
}
public
String
getName
()
{
return
name
;
...
...
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysMenuServiceImpl.java
View file @
6cc681b4
...
...
@@ -169,6 +169,7 @@ public class SysMenuServiceImpl implements ISysMenuService
{
RouterVo
router
=
new
RouterVo
();
router
.
setHidden
(
"1"
.
equals
(
menu
.
getVisible
()));
router
.
setSecondaryMenuName
(
menu
.
getSecondaryMenuName
());
router
.
setName
(
getRouteName
(
menu
));
router
.
setPath
(
getRouterPath
(
menu
));
router
.
setComponent
(
getComponent
(
menu
));
...
...
ruoyi-system/src/main/resources/mapper/system/SysMenuMapper.xml
View file @
6cc681b4
...
...
@@ -25,10 +25,11 @@
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"secondaryMenuName"
column=
"secondary_menu_name"
/>
</resultMap>
<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
</sql>
...
...
@@ -49,7 +50,7 @@
</select>
<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
order by m.parent_id, m.order_num
</select>
...
...
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