Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gdtel-gztel-school-center
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴学德
gdtel-gztel-school-center
Commits
7b092ddf
Commit
7b092ddf
authored
Mar 15, 2022
by
罗承锋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化垂直鉴权
parent
10f69ae4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
common/src/main/java/com/winsun/mapper/SysUserMapper.java
+3
-0
common/src/main/resources/com/winsun/mapper/mapping/SysUserMapper.xml
+14
-0
No files found.
common/src/main/java/com/winsun/mapper/SysUserMapper.java
View file @
7b092ddf
package
com
.
winsun
.
mapper
;
package
com
.
winsun
.
mapper
;
import
com.baomidou.mybatisplus.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.mapper.BaseMapper
;
import
com.winsun.auth.model.common.Menu
;
import
com.winsun.bean.SysUser
;
import
com.winsun.bean.SysUser
;
import
org.apache.ibatis.annotations.*
;
import
org.apache.ibatis.annotations.*
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
...
@@ -26,4 +27,6 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
...
@@ -26,4 +27,6 @@ public interface SysUserMapper extends BaseMapper<SysUser> {
List
<
Map
<
String
,
Object
>>
findPartnerById
(
@Param
(
"id"
)
String
id
);
List
<
Map
<
String
,
Object
>>
findPartnerById
(
@Param
(
"id"
)
String
id
);
List
<
Map
<
String
,
Object
>>
schoolAllocationList
(
@Param
(
"account"
)
String
account
,
@Param
(
"name"
)
String
name
,
@Param
(
"substName"
)
String
substName
,
@Param
(
"schoolName"
)
String
schoolName
);
List
<
Map
<
String
,
Object
>>
schoolAllocationList
(
@Param
(
"account"
)
String
account
,
@Param
(
"name"
)
String
name
,
@Param
(
"substName"
)
String
substName
,
@Param
(
"schoolName"
)
String
schoolName
);
List
<
Menu
>
getRoleMenu
(
@Param
(
"roleIds"
)
List
<
Integer
>
roleIds
);
}
}
common/src/main/resources/com/winsun/mapper/mapping/SysUserMapper.xml
View file @
7b092ddf
...
@@ -22,5 +22,19 @@
...
@@ -22,5 +22,19 @@
</if>
</if>
</select>
</select>
<select
id=
"getRoleMenu"
resultType=
"com.winsun.auth.model.common.Menu"
>
SELECT
sm.`name`,
sm.url
FROM
sys_relation sr
LEFT JOIN sys_menu sm ON sr.menuid = sm.id
WHERE
sr.roleid in
<foreach
collection=
"roleIds"
item=
"role"
open=
"("
close=
")"
>
#{role}
</foreach>
</select>
</mapper>
</mapper>
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