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
d9931267
Commit
d9931267
authored
Sep 27, 2023
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
菜单权限修改
parent
18dacef7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
SysUserPermissionServiceImpl.java
...permission/service/impl/SysUserPermissionServiceImpl.java
+5
-5
No files found.
yifu-permission/yifu-permission-biz/src/main/java/com/yifu/cloud/plus/v1/permission/service/impl/SysUserPermissionServiceImpl.java
View file @
d9931267
...
...
@@ -61,7 +61,7 @@ public class SysUserPermissionServiceImpl extends ServiceImpl<SysUserPermissionM
YifuUser
user
=
SecurityUtils
.
getUser
();
//非管理员判断是否包含此权限维度
SysUserPermission
permission
;
if
(
!
CommonConstants
.
ONE_STRING
.
equals
(
user
.
getId
()))
{
if
(
Common
.
isNotNull
(
user
.
getId
())
&&
CommonConstants
.
ONE_STRING
.
equals
(
user
.
getSystemFlag
()))
{
permission
=
this
.
getOne
(
Wrappers
.<
SysUserPermission
>
query
().
lambda
()
.
eq
(
SysUserPermission:
:
getPermissionStatus
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
SysUserPermission:
:
getEmpLoginName
,
user
.
getUsername
())
...
...
@@ -155,7 +155,7 @@ public class SysUserPermissionServiceImpl extends ServiceImpl<SysUserPermissionM
iPage
=
baseMapper
.
selectQuotationVO
(
page
,
searchVo
.
getName
());
}
else
if
(
CommonConstants
.
FOUR_STRING
.
equals
(
searchVo
.
getType
()))
{
//合同权限
if
(
Common
Constants
.
ONE_STRING
.
equals
(
user
.
getId
()))
{
if
(
Common
.
isNotNull
(
user
.
getId
())
&&
CommonConstants
.
ZERO_STRING
.
equals
(
user
.
getSystemFlag
()))
{
iPage
=
baseMapper
.
selectContractVO
(
page
,
searchVo
.
getName
());
}
else
{
iPage
=
baseMapper
.
selectContractSimpleVO
(
page
,
user
.
getUsername
(),
searchVo
.
getName
(),
searchVo
.
getType
());
...
...
@@ -165,7 +165,7 @@ public class SysUserPermissionServiceImpl extends ServiceImpl<SysUserPermissionM
iPage
=
baseMapper
.
selectDeptVO
(
page
,
searchVo
.
getName
());
}
else
{
//项目权限
if
(
Common
Constants
.
ONE_STRING
.
equals
(
user
.
getId
()))
{
if
(
Common
.
isNotNull
(
user
.
getId
())
&&
CommonConstants
.
ZERO_STRING
.
equals
(
user
.
getSystemFlag
()))
{
iPage
=
baseMapper
.
selectSettleVO
(
page
,
searchVo
.
getName
());
}
else
{
iPage
=
baseMapper
.
selectContractSimpleVO
(
page
,
user
.
getUsername
(),
searchVo
.
getName
(),
searchVo
.
getType
());
...
...
@@ -179,7 +179,7 @@ public class SysUserPermissionServiceImpl extends ServiceImpl<SysUserPermissionM
@Override
public
List
<
SysDictVo
>
selectDictByType
(
String
type
)
{
YifuUser
user
=
SecurityUtils
.
getUser
();
if
(
"permission"
.
equals
(
type
)
&&
!
CommonConstants
.
ONE_STRING
.
equals
(
user
.
getId
()))
{
if
(
"permission"
.
equals
(
type
)
&&
Common
.
isNotNull
(
user
.
getId
())
&&
CommonConstants
.
ONE_STRING
.
equals
(
user
.
getSystemFlag
()))
{
return
baseMapper
.
selectDictByTypeOne
(
type
,
CommonConstants
.
ZERO_STRING
);
}
else
{
return
baseMapper
.
selectDictByType
(
type
);
...
...
@@ -360,7 +360,7 @@ public class SysUserPermissionServiceImpl extends ServiceImpl<SysUserPermissionM
//非管理员的用户只能导入合同和项目权限维度的数据且只有自己有权限的维度才可导入
//当登录人不是管理员时根据导表登录名查询权限数据
if
(
!
CommonConstants
.
ONE_STRING
.
equals
(
user
.
getId
()))
{
if
(
Common
.
isNotNull
(
user
.
getId
())
&&
CommonConstants
.
ONE_STRING
.
equals
(
user
.
getSystemFlag
()))
{
permission
=
this
.
getOne
(
Wrappers
.<
SysUserPermission
>
query
().
lambda
()
.
eq
(
SysUserPermission:
:
getPermissionStatus
,
CommonConstants
.
ZERO_STRING
)
.
eq
(
SysUserPermission:
:
getEmpLoginName
,
user
.
getUsername
())
...
...
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