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 140516f5
authored
Aug 16, 2021
by
wangnb
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
账户体系账户类型名称重复校验--think.wang
1 parent
dffa38b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
src/main/java/cn/com/glsx/merchants/service/MerchantAccountTypeService.java
src/main/java/cn/com/glsx/merchants/service/MerchantAccountTypeService.java
View file @
140516f
...
@@ -180,6 +180,16 @@ public class MerchantAccountTypeService {
...
@@ -180,6 +180,16 @@ public class MerchantAccountTypeService {
*/
*/
@SysLog
(
value
=
"更新账户类型数据"
,
action
=
OperateType
.
EDIT
,
module
=
"账户类型管理"
)
@SysLog
(
value
=
"更新账户类型数据"
,
action
=
OperateType
.
EDIT
,
module
=
"账户类型管理"
)
public
Boolean
update
(
AccountTypeUpdateRequest
request
)
{
public
Boolean
update
(
AccountTypeUpdateRequest
request
)
{
RpcResponse
<
List
<
MerchantAccountTypeResponse
>>
rpcAccountList
=
accountTypeRemote
.
getListByNameRemote
(
request
.
getAccounttypeName
());
if
(!
rpcAccountList
.
isSuccess
()){
throw
new
RpcServiceException
(
rpcAccountList
.
getException
().
getErrId
(),
rpcAccountList
.
getMessage
());
}
List
<
MerchantAccountTypeResponse
>
list
=
rpcAccountList
.
getResult
();
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
if
(
list
.
size
()
>
1
||
!(
list
.
get
(
0
).
getId
().
equals
(
request
.
getId
()))){
throw
new
RpcServiceException
(
BusinessExceptionEnum
.
ACCOUNT_NAME_EXIT
);
}
}
MerchantAccountTypeRequest
typeRequest
=
new
MerchantAccountTypeRequest
();
MerchantAccountTypeRequest
typeRequest
=
new
MerchantAccountTypeRequest
();
dozerMapper
.
map
(
request
,
typeRequest
);
dozerMapper
.
map
(
request
,
typeRequest
);
this
.
dataTransfer
(
typeRequest
,
request
.
getRequestList
());
//数据转换
this
.
dataTransfer
(
typeRequest
,
request
.
getRequestList
());
//数据转换
...
...
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