Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
9b9ff06f
Commit
9b9ff06f
authored
Sep 20, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
菜单权限修改
parent
ef15bd95
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
15 deletions
+18
-15
SysUserPermission.java
...oud/plus/v1/yifu/permission/entity/SysUserPermission.java
+2
-2
SysUserPermissionMapper.java
...ud/plus/v1/permission/mapper/SysUserPermissionMapper.java
+2
-2
SysUserPermissionServiceImpl.java
...permission/service/impl/SysUserPermissionServiceImpl.java
+2
-1
SysUserPermissionMapper.xml
...biz/src/main/resources/mapper/SysUserPermissionMapper.xml
+12
-10
No files found.
yifu-permission/yifu-permission-api/src/main/java/com/yifu/cloud/plus/v1/yifu/permission/entity/SysUserPermission.java
View file @
9b9ff06f
...
...
@@ -89,8 +89,8 @@ public class SysUserPermission extends BaseEntity {
private
String
deleteFlag
;
/**
*
项目
id
*
部门
id
*/
@Schema
(
description
=
"
项目
id"
)
@Schema
(
description
=
"
部门
id"
)
private
String
domainId
;
}
yifu-permission/yifu-permission-biz/src/main/java/com/yifu/cloud/plus/v1/permission/mapper/SysUserPermissionMapper.java
View file @
9b9ff06f
...
...
@@ -78,8 +78,8 @@ public interface SysUserPermissionMapper extends BaseMapper<SysUserPermission> {
IPage
<
SysUserDeptVo
>
selectSettleVO
(
Page
<
SysUserDeptVo
>
page
,
@Param
(
"name"
)
String
name
);
/**
* 根据名项目
编码
查询id
*
项目
权限
* 根据名项目
部门
查询id
*
部门
权限
* @param code 编码
* @return
*/
...
...
yifu-permission/yifu-permission-biz/src/main/java/com/yifu/cloud/plus/v1/permission/service/impl/SysUserPermissionServiceImpl.java
View file @
9b9ff06f
...
...
@@ -372,7 +372,8 @@ public class SysUserPermissionServiceImpl extends ServiceImpl<SysUserPermissionM
}
}
//项目权限的时候赋值项目id
if
(
CommonConstants
.
FIVE_STRING
.
equals
(
insert
.
getPermissionType
()))
{
if
(
CommonConstants
.
EIGHT_STRING
.
equals
(
insert
.
getPermissionType
())
||
CommonConstants
.
NINE_STRING
.
equals
(
insert
.
getPermissionType
()))
{
domainId
=
baseMapper
.
selectSettleByCode
(
insert
.
getCode
());
insert
.
setDomainId
(
domainId
);
}
...
...
yifu-permission/yifu-permission-biz/src/main/resources/mapper/SysUserPermissionMapper.xml
View file @
9b9ff06f
...
...
@@ -157,7 +157,7 @@
<select
id=
"selectSettleVO"
resultMap=
"nameAndCodeMap"
>
SELECT
a.fd_3a37fe508071fe code,a.fd_3a2b38c61ef9aa name
,a.fd_id domainId
a.fd_3a37fe508071fe code,a.fd_3a2b38c61ef9aa name
from ekp_24a8e6a7fc143bb8c48a a
where 1=1
<if
test=
"name != null and name.trim() != ''"
>
...
...
@@ -165,13 +165,6 @@
</if>
</select>
<!--根据项目编码查询id-->
<select
id=
"selectSettleByCode"
resultType=
"java.lang.String"
>
SELECT
a.fd_id
from ekp_24a8e6a7fc143bb8c48a a where a.fd_3a37fe508071fe = #{code} limit 1
</select>
<select
id=
"selectContractSimpleVO"
resultMap=
"nameAndCodeMap"
>
SELECT
a.NAME,
...
...
@@ -205,14 +198,23 @@
<select
id=
"selectDeptVO"
resultMap=
"nameAndCodeMap"
>
SELECT
a.fd_no code,a.fd_name name
a.fd_no code,a.fd_name name
,a.fd_id domainId
from sys_org_element a
where a.fd_is_available = '1' and fd_org_type = 2
where a.fd_is_available = '1' and
a.
fd_org_type = 2
<if
test=
"name != null and name.trim() != ''"
>
AND (a.fd_no like concat('%',#{name},'%') or a.fd_name like concat('%',#{name},'%'))
</if>
</select>
<!--根据部门编码查询id-->
<select
id=
"selectSettleByCode"
resultType=
"java.lang.String"
>
SELECT
a.fd_id
from sys_org_element a
where a.fd_is_available = '1' and a.fd_org_type = 2 and a.fd_no = #{code}
limit 1
</select>
<select
id=
"selectDictByType"
resultMap=
"dictMap"
>
SELECT
a.dict_id as id,a.name
...
...
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