Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
0aaf0000
Commit
0aaf0000
authored
Apr 08, 2019
by
季圣华
Browse files
解决分配角色报错的bug
parent
bc22a9f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/jsh/erp/service/userBusiness/UserBusinessService.java
View file @
0aaf0000
...
...
@@ -67,7 +67,7 @@ public class UserBusinessService {
UserBusiness
userBusiness
=
JSONObject
.
parseObject
(
beanJson
,
UserBusiness
.
class
);
int
inserts
=
userBusinessMapper
.
insertSelective
(
userBusiness
);
// 更新应用权限
if
(
inserts
>
0
)
{
if
(
(
"RoleFunctions"
).
equals
(
userBusiness
.
getType
())
&&
inserts
>
0
)
{
inserts
=
insertOrUpdateAppValue
(
BusinessConstants
.
TYPE_NAME_ROLE_APP
,
userBusiness
.
getKeyid
(),
userBusiness
.
getValue
());
}
return
inserts
;
...
...
@@ -79,7 +79,7 @@ public class UserBusinessService {
userBusiness
.
setId
(
id
);
int
updates
=
userBusinessMapper
.
updateByPrimaryKeySelective
(
userBusiness
);
// 更新应用权限
if
(
updates
>
0
)
{
if
(
(
"RoleFunctions"
).
equals
(
userBusiness
.
getType
())
&&
updates
>
0
)
{
updates
=
insertOrUpdateAppValue
(
BusinessConstants
.
TYPE_NAME_ROLE_APP
,
userBusiness
.
getKeyid
(),
userBusiness
.
getValue
());
}
return
updates
;
...
...
Write
Preview
Supports
Markdown
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