Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
Overview
Overview
Details
Activity
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
base_platform_enterprise
gic-platform-auth
Commits
53fb7dc0
Commit
53fb7dc0
authored
Oct 10, 2019
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应用市场一级页面新增的时候排序取值修改
parent
b95c572f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
MenuApiServiceImpl.java
...a/com/gic/auth/service/outer/impl/MenuApiServiceImpl.java
+6
-1
TabSysMenuMapper.xml
...th-service/src/main/resources/mapper/TabSysMenuMapper.xml
+3
-1
No files found.
gic-platform-auth-service/src/main/java/com/gic/auth/service/outer/impl/MenuApiServiceImpl.java
View file @
53fb7dc0
...
...
@@ -556,7 +556,12 @@ public class MenuApiServiceImpl implements MenuApiService {
*/
private
void
setNormalFieldValue
(
MenuDTO
menuDTO
)
{
//sort
int
maxSort
=
menuService
.
getMaxSortByParentId
(
MenuLevelConstants
.
FIRST_LEVEL_PARENT_ID
,
menuDTO
.
getProject
());
int
maxSort
;
if
(
MenuProjectConstants
.
DEFAULT_PROJECT
.
equals
(
menuDTO
.
getProject
()))
{
maxSort
=
menuService
.
getMaxSortByParentId
(
MenuLevelConstants
.
FIRST_LEVEL_PARENT_ID
,
menuDTO
.
getProject
());
}
else
{
maxSort
=
menuService
.
getMaxSortByParentId
(
MenuLevelConstants
.
FIRST_LEVEL_PARENT_ID
,
null
);
}
menuDTO
.
setSort
(
maxSort
+
1
);
//level
menuDTO
.
setLevel
(
1
);
...
...
gic-platform-auth-service/src/main/resources/mapper/TabSysMenuMapper.xml
View file @
53fb7dc0
...
...
@@ -288,7 +288,9 @@
from tab_sys_menu
where status=1
and parent_id = #{parentId}
and project = #{project}
<if
test=
"project != null"
>
and project = #{project}
</if>
</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