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
0fe78d22
Commit
0fe78d22
authored
Sep 07, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
菜单权限修改
parent
4c02d490
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
SysUserPermissionServiceImpl.java
...permission/service/impl/SysUserPermissionServiceImpl.java
+7
-1
No files found.
yifu-permission/yifu-permission-biz/src/main/java/com/yifu/cloud/plus/v1/permission/service/impl/SysUserPermissionServiceImpl.java
View file @
0fe78d22
...
...
@@ -261,12 +261,18 @@ public class SysUserPermissionServiceImpl extends ServiceImpl<SysUserPermissionM
// 执行数据插入操作 组装
for
(
int
i
=
0
;
i
<
excelVOList
.
size
();
i
++)
{
SysUserPermissionVo
excel
=
excelVOList
.
get
(
i
);
//登录名校验
userInfo
=
userInfoList
.
stream
().
filter
(
e
->
excel
.
getEmpLoginName
().
equals
(
e
.
getFdLoginName
())).
collect
(
Collectors
.
toList
());
if
(
userInfo
.
isEmpty
())
{
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"登录名填写错误,请核实"
,
excel
));
continue
;
}
//从用户表中获取部门和用户名
SysUserInfo
sysUserInfo
=
userInfo
.
get
(
0
);
excel
.
setEmpDept
(
sysUserInfo
.
getFdDeptName
());
excel
.
setEmpName
(
sysUserInfo
.
getFdName
());
//判断表格权限类型是否正确
if
(
typeMap
.
isEmpty
())
{
errorMessageList
.
add
(
new
ErrorMessage
(
excel
.
getRowIndex
(),
"获取权限类型字典值异常"
,
excel
));
...
...
@@ -293,6 +299,7 @@ public class SysUserPermissionServiceImpl extends ServiceImpl<SysUserPermissionM
}
else
{
uniqueMap
.
put
(
flag
.
toString
(),
CommonConstants
.
ONE_STRING
);
}
//BU和条线的时候用名称判断,其他用编码判断
//判断此登录名是否已经存在此权限维度
if
(
CommonConstants
.
SIX_STRING
.
equals
(
excel
.
getPermissionType
())
...
...
@@ -346,7 +353,6 @@ public class SysUserPermissionServiceImpl extends ServiceImpl<SysUserPermissionM
continue
;
}
}
// 插入数据
insertExcel
(
excel
);
}
...
...
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