Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
education
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
李丛阳
education
Commits
93eb912d
Commit
93eb912d
authored
Nov 14, 2019
by
luzhuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新代码
parent
bb47f29b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
SysUserController.java
...va/org/rcisoft/sys/user/controller/SysUserController.java
+2
-1
SysUserMapper.java
src/main/java/org/rcisoft/sys/user/dao/SysUserMapper.java
+1
-1
No files found.
src/main/java/org/rcisoft/sys/user/controller/SysUserController.java
View file @
93eb912d
...
...
@@ -138,7 +138,8 @@ public class SysUserController extends PaginationController<SysUser> {
}
@ApiOperation
(
value
=
"706 根据userId 查询菜单"
,
notes
=
"userId 和 modelId查询 menu"
)
@ApiImplicitParam
(
name
=
"modelId"
,
value
=
"前台菜单10 后台菜单20"
,
required
=
true
,
dataType
=
"varchar"
,
paramType
=
"path"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
name
=
"modelId"
,
value
=
"前台菜单10 后台菜单20"
,
required
=
true
,
dataType
=
"varchar"
,
paramType
=
"path"
),
@ApiImplicitParam
(
name
=
"type"
,
value
=
"查总裁读书会菜单 客户端传2 手机端传0 不传查全部(modelId传 10) "
,
required
=
true
,
dataType
=
"varchar"
,
paramType
=
"path"
)})
@GetMapping
(
"/queryMenuById"
)
public
Result
queryMenu
(
CurUser
curUser
,
String
modelId
,
String
type
)
{
return
Result
.
builder
(
new
PersistModel
(
1
),
...
...
src/main/java/org/rcisoft/sys/user/dao/SysUserMapper.java
View file @
93eb912d
...
...
@@ -300,7 +300,7 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
@Select
(
"<script>select title menuName,external_url url,logo from b_external_link where 1=1 "
+
"<if test=\"type !=null \"> and type
!= 2
</if>"
+
"<if test=\"type !=null \"> and type
in ('1',${type})
</if>"
+
" and corp_id = #{corpId} "
+
" and del_flag !=1 and flag = 1 ORDER BY sort </script>"
)
List
<
MenuDTO
>
getReadingMenu
(
@Param
(
"type"
)
String
type
,
@Param
(
"corpId"
)
String
corpId
);
...
...
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