Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
aserver
Project
Project
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
15所TongWeb
aserver
Commits
8aaa1e50
Commit
8aaa1e50
authored
Mar 29, 2021
by
胡文斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并微前端
parent
5b6613d1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
1 deletion
+20
-1
MenuController.java
...n/java/com/archser/aserver/controller/MenuController.java
+10
-0
BaseSystem.java
src/main/java/com/archser/aserver/model/base/BaseSystem.java
+9
-0
oracle.sql
src/main/resources/oracle.sql
+1
-1
No files found.
src/main/java/com/archser/aserver/controller/MenuController.java
View file @
8aaa1e50
...
@@ -206,6 +206,7 @@ public class MenuController extends Controller {
...
@@ -206,6 +206,7 @@ public class MenuController extends Controller {
}
}
menu
.
put
(
"system"
,
system
.
getName
());
menu
.
put
(
"system"
,
system
.
getName
());
menu
.
put
(
"url"
,
system
.
getUrl
());
menu
.
put
(
"url"
,
system
.
getUrl
());
menu
.
put
(
"micro_app"
,
system
.
getStr
(
"micro_app"
));
// 过滤不需要显示的菜单
// 过滤不需要显示的菜单
if
(
menu
.
getHidden
()
==
null
||
menu
.
getHidden
()
!=
1
)
{
if
(
menu
.
getHidden
()
==
null
||
menu
.
getHidden
()
!=
1
)
{
menu
.
put
(
"star"
,
exist
(
menu
.
getId
(),
stars
));
menu
.
put
(
"star"
,
exist
(
menu
.
getId
(),
stars
));
...
@@ -229,4 +230,13 @@ public class MenuController extends Controller {
...
@@ -229,4 +230,13 @@ public class MenuController extends Controller {
renderJson
(
Ret
.
fail
(
"msg"
,
e
.
getMessage
()));
renderJson
(
Ret
.
fail
(
"msg"
,
e
.
getMessage
()));
}
}
}
}
/**
* 获取微前端项目接口路径
* @date 2021.3.2
* @auther huwenbin
*/
public
void
getMicroSystemByName
()
{
this
.
renderJson
(
Ret
.
ok
(
"miroApp"
,
InfoSystem
.
getSystem
(
this
.
getPara
(
"server"
)).
getStr
(
"micro_app"
)));
}
}
}
src/main/java/com/archser/aserver/model/base/BaseSystem.java
View file @
8aaa1e50
...
@@ -99,4 +99,13 @@ public abstract class BaseSystem<M extends BaseSystem<M>> extends Model<M> imple
...
@@ -99,4 +99,13 @@ public abstract class BaseSystem<M extends BaseSystem<M>> extends Model<M> imple
return
getStr
(
"DESCRIPTION"
);
return
getStr
(
"DESCRIPTION"
);
}
}
public
M
setMicroApp
(
java
.
lang
.
String
microApp
)
{
set
(
"MICRO_APP"
,
microApp
);
return
(
M
)
this
;
}
public
java
.
lang
.
String
getMicroApp
()
{
return
getStr
(
"MICRO_APP"
);
}
}
}
src/main/resources/oracle.sql
View file @
8aaa1e50
...
@@ -64,7 +64,7 @@ select * from AS_USER where USERNAME=#para(0)
...
@@ -64,7 +64,7 @@ select * from AS_USER where USERNAME=#para(0)
###
获取系统,应用菜单使用
###
获取系统,应用菜单使用
#
sql
(
"getSystems"
)
#
sql
(
"getSystems"
)
select
ID
,
NAME
,
TITLE
,
TYPE
,
URL
,
DESCRIPTION
from
AS_SYSTEM
order
by
ID
select
ID
,
NAME
,
TITLE
,
TYPE
,
URL
,
DESCRIPTION
,
MICRO_APP
from
AS_SYSTEM
order
by
ID
#
end
#
end
###
获取系统
###
获取系统
...
...
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