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
464a1d0f
Commit
464a1d0f
authored
Sep 22, 2022
by
hongguangwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
薪资相关权限-优化
parent
af112b7d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
7 deletions
+25
-7
Common.java
.../com/yifu.cloud.plus.v1/yifu/common/core/util/Common.java
+1
-1
MenuUtil.java
...om/yifu/cloud/plus/v1/yifu/common/dapr/util/MenuUtil.java
+1
-1
TConfigSalaryServiceImpl.java
...v1/yifu/salary/service/impl/TConfigSalaryServiceImpl.java
+1
-1
SysDataAuthServiceImpl.java
...us.v1/yifu/admin/service/impl/SysDataAuthServiceImpl.java
+22
-4
No files found.
yifu-common/yifu-common-core/src/main/java/com/yifu.cloud.plus.v1/yifu/common/core/util/Common.java
View file @
464a1d0f
...
...
@@ -59,7 +59,7 @@ public class Common {
* @author: fxj
*/
public
static
boolean
isEmpty
(
Object
obj
)
{
return
null
==
obj
||
""
.
equals
(
obj
);
return
null
==
obj
||
""
.
equals
(
obj
)
||
"null"
.
equals
(
obj
)
;
}
public
static
boolean
isNotNull
(
Object
obj
)
{
...
...
yifu-common/yifu-common-dapr/src/main/java/com/yifu/cloud/plus/v1/yifu/common/dapr/util/MenuUtil.java
View file @
464a1d0f
...
...
@@ -78,7 +78,7 @@ public class MenuUtil {
}
if
(
Common
.
isNotNull
(
obj
))
{
SimpleValueWrapper
objs
=
(
SimpleValueWrapper
)
obj
;
if
(
objs
!=
null
)
{
if
(
Common
.
isEmpty
(
objs
)
)
{
String
sql
=
String
.
valueOf
(
objs
.
get
());
if
(
sql
.
contains
(
"#create_by"
))
{
sql
=
sql
.
replace
(
"#create_by"
,
user
.
getId
());
...
...
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TConfigSalaryServiceImpl.java
View file @
464a1d0f
...
...
@@ -37,7 +37,7 @@ public class TConfigSalaryServiceImpl extends ServiceImpl<TConfigSalaryMapper, T
public
R
<
IPage
<
TConfigSalary
>>
getTConfigSalaryPage
(
Page
<
TConfigSalary
>
page
,
TConfigSalary
tConfigSalary
){
YifuUser
user
=
SecurityUtils
.
getUser
();
TSettleDomainListVo
vo
=
null
;
if
(
Common
.
isNotNull
(
user
))
{
if
(
Common
.
isNotNull
(
user
)
&&
CommonConstants
.
ONE_STRING
.
equals
(
user
.
getSystemFlag
())
)
{
R
<
TSettleDomainListVo
>
domainListVoR
=
archivesDaprUtil
.
getSettleDomainIdsByUserId
(
user
.
getId
());
if
(
Common
.
isEmpty
(
domainListVoR
))
{
return
R
.
failed
(
"调用结算服务失败"
);
...
...
yifu-upms/yifu-upms-biz/src/main/java/com/yifu.cloud.plus.v1/yifu/admin/service/impl/SysDataAuthServiceImpl.java
View file @
464a1d0f
...
...
@@ -418,11 +418,29 @@ public class SysDataAuthServiceImpl extends ServiceImpl<SysDataAuthMapper, SysDa
* @return: void
**/
public
void
deleteSubInfoByMainId
(
String
mainId
)
{
SysDataAuth
a
=
this
.
getById
(
mainId
);
if
(
a
!=
null
)
{
Cache
cache
=
cacheManager
.
getCache
(
CacheConstants
.
DATA_AUTH_DETAILS
+
a
.
getLinkType
());
if
(
cache
!=
null
)
{
List
<
SysDataAuthMenuRel
>
authMenuList
=
authMenuRelService
.
getByMainId
(
mainId
);
List
<
SysDiySqlMenuRel
>
diySqlMenuList
=
diySqlMenuRelService
.
getByMainId
(
mainId
);
if
(
authMenuList
!=
null
&&
!
authMenuList
.
isEmpty
())
{
for
(
SysDataAuthMenuRel
sd
:
authMenuList
)
{
cache
.
put
(
a
.
getLinkId
()
+
CommonConstants
.
DOWN_LINE_STRING
+
sd
.
getMenuId
(),
null
);
}
}
if
(
diySqlMenuList
!=
null
&&
!
diySqlMenuList
.
isEmpty
())
{
for
(
SysDiySqlMenuRel
dsd
:
diySqlMenuList
)
{
cache
.
put
(
a
.
getLinkId
()
+
CommonConstants
.
DOWN_LINE_STRING
+
dsd
.
getMenuId
(),
null
);
}
}
authDeptRelService
.
deleteAuthDeptRelByAuthId
(
mainId
);
authMenuRelService
.
deleteAuthMenuRelByAuthId
(
mainId
);
diySqlService
.
deleteDiySqlByAuthId
(
mainId
);
diySqlMenuRelService
.
deleteSqlMenuRelByAuthId
(
mainId
);
}
}
}
/**
* 删除
...
...
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