Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
scrm
/
rop-merchant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 4dc9acf5
authored
Aug 24, 2021
by
wangnb
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
账户体系角色管理名称重复校验--think.wang
1 parent
a2c4fd36
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
src/main/java/cn/com/glsx/merchants/service/MerchantRoleService.java
src/main/java/cn/com/glsx/merchants/service/MerchantRoleService.java
View file @
4dc9acf
...
@@ -186,7 +186,8 @@ public class MerchantRoleService {
...
@@ -186,7 +186,8 @@ public class MerchantRoleService {
*/
*/
@SysLog
(
value
=
"保存角色数据"
,
action
=
OperateType
.
ADD
,
module
=
"角色管理"
)
@SysLog
(
value
=
"保存角色数据"
,
action
=
OperateType
.
ADD
,
module
=
"角色管理"
)
public
Boolean
insert
(
RoleInsertRequest
request
)
{
public
Boolean
insert
(
RoleInsertRequest
request
)
{
RpcResponse
<
List
<
MerchantRoleResponse
>>
rpc
=
roleRemote
.
getListByNameRemote
(
request
.
getRoleName
());
RpcResponse
<
List
<
MerchantRoleResponse
>>
rpc
=
roleRemote
.
getListByNameRemote
(
request
.
getRoleName
(),
request
.
getMerchantId
());
if
(!
rpc
.
isSuccess
()){
if
(!
rpc
.
isSuccess
()){
throw
new
RpcServiceException
(
rpc
.
getException
().
getErrId
(),
rpc
.
getMessage
());
throw
new
RpcServiceException
(
rpc
.
getException
().
getErrId
(),
rpc
.
getMessage
());
}
}
...
@@ -212,7 +213,8 @@ public class MerchantRoleService {
...
@@ -212,7 +213,8 @@ public class MerchantRoleService {
*/
*/
@SysLog
(
value
=
"更新角色数据"
,
action
=
OperateType
.
EDIT
,
module
=
"角色管理"
)
@SysLog
(
value
=
"更新角色数据"
,
action
=
OperateType
.
EDIT
,
module
=
"角色管理"
)
public
Boolean
update
(
RoleUpdateRequest
request
)
{
public
Boolean
update
(
RoleUpdateRequest
request
)
{
RpcResponse
<
List
<
MerchantRoleResponse
>>
rpcRoleList
=
roleRemote
.
getListByNameRemote
(
request
.
getRoleName
());
RpcResponse
<
List
<
MerchantRoleResponse
>>
rpcRoleList
=
roleRemote
.
getListByNameRemote
(
request
.
getRoleName
(),
request
.
getMerchantId
());
if
(!
rpcRoleList
.
isSuccess
()){
if
(!
rpcRoleList
.
isSuccess
()){
throw
new
RpcServiceException
(
rpcRoleList
.
getException
().
getErrId
(),
rpcRoleList
.
getMessage
());
throw
new
RpcServiceException
(
rpcRoleList
.
getException
().
getErrId
(),
rpcRoleList
.
getMessage
());
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment