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 91029892
authored
Aug 05, 2021
by
wangnb
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
账户体系账户类型、角色状态字符串--think.wang
1 parent
b45255be
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
6 deletions
src/main/java/cn/com/glsx/merchants/response/AccountTypeResponse.java
src/main/java/cn/com/glsx/merchants/response/RoleResponse.java
src/main/java/cn/com/glsx/merchants/service/MerchantAccountTypeService.java
src/main/java/cn/com/glsx/merchants/service/MerchantRoleService.java
src/main/java/cn/com/glsx/merchants/response/AccountTypeResponse.java
View file @
9102989
...
@@ -59,6 +59,12 @@ public class AccountTypeResponse implements Serializable {
...
@@ -59,6 +59,12 @@ public class AccountTypeResponse implements Serializable {
private
Byte
delFlag
;
private
Byte
delFlag
;
/**
/**
* 账户状态
*/
@ApiModelProperty
(
name
=
"statusName"
,
notes
=
"账户状态"
,
dataType
=
"String"
,
required
=
true
,
example
=
"1"
)
private
String
statusName
;
/**
* 账户类型编码
* 账户类型编码
*/
*/
@ApiModelProperty
(
notes
=
"账户类型编码"
,
name
=
"accounttypeCode"
,
dataType
=
"String"
)
@ApiModelProperty
(
notes
=
"账户类型编码"
,
name
=
"accounttypeCode"
,
dataType
=
"String"
)
...
...
src/main/java/cn/com/glsx/merchants/response/RoleResponse.java
View file @
9102989
...
@@ -51,6 +51,12 @@ public class RoleResponse implements Serializable {
...
@@ -51,6 +51,12 @@ public class RoleResponse implements Serializable {
private
Byte
delFlag
;
private
Byte
delFlag
;
/**
/**
* 账户状态
*/
@ApiModelProperty
(
name
=
"statusName"
,
notes
=
"账户状态"
,
dataType
=
"String"
,
required
=
true
,
example
=
"1"
)
private
String
statusName
;
/**
* 创建时间
* 创建时间
*/
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
...
...
src/main/java/cn/com/glsx/merchants/service/MerchantAccountTypeService.java
View file @
9102989
...
@@ -5,6 +5,7 @@ import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
...
@@ -5,6 +5,7 @@ import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.merchants.convert.ConvertRequest
;
import
cn.com.glsx.merchants.convert.ConvertRequest
;
import
cn.com.glsx.merchants.convert.ConvertResponse
;
import
cn.com.glsx.merchants.convert.ConvertResponse
;
import
cn.com.glsx.merchants.enums.CommonStatusEnum
;
import
cn.com.glsx.merchants.model.request.AccountFunctionRelationRequest
;
import
cn.com.glsx.merchants.model.request.AccountFunctionRelationRequest
;
import
cn.com.glsx.merchants.model.request.MerchantAccountTypeRequest
;
import
cn.com.glsx.merchants.model.request.MerchantAccountTypeRequest
;
import
cn.com.glsx.merchants.model.response.AccountFunctionRelationResponse
;
import
cn.com.glsx.merchants.model.response.AccountFunctionRelationResponse
;
...
@@ -81,7 +82,9 @@ public class MerchantAccountTypeService {
...
@@ -81,7 +82,9 @@ public class MerchantAccountTypeService {
RpcResponse
<
RpcPagination
<
MerchantAccountTypeResponse
>>
response
=
RpcResponse
<
RpcPagination
<
MerchantAccountTypeResponse
>>
response
=
accountTypeRemote
.
getAccountTypePageRemote
(
pagination
);
accountTypeRemote
.
getAccountTypePageRemote
(
pagination
);
if
(
response
.
isSuccess
()){
if
(
response
.
isSuccess
()){
return
ConvertResponse
.
convertPage
(
response
.
getResult
(),
AccountTypeResponse
.
class
);
Pagination
<
AccountTypeResponse
>
res
=
ConvertResponse
.
convertPage
(
response
.
getResult
(),
AccountTypeResponse
.
class
);
res
.
getData
().
stream
().
forEach
(
index
->
index
.
setStatusName
(
CommonStatusEnum
.
getText
(
index
.
getDelFlag
())));
return
res
;
}
}
throw
new
RpcServiceException
(
response
.
getException
().
getErrId
(),
response
.
getMessage
());
throw
new
RpcServiceException
(
response
.
getException
().
getErrId
(),
response
.
getMessage
());
}
}
...
...
src/main/java/cn/com/glsx/merchants/service/MerchantRoleService.java
View file @
9102989
...
@@ -5,6 +5,7 @@ import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
...
@@ -5,6 +5,7 @@ import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.merchants.convert.ConvertRequest
;
import
cn.com.glsx.merchants.convert.ConvertRequest
;
import
cn.com.glsx.merchants.convert.ConvertResponse
;
import
cn.com.glsx.merchants.convert.ConvertResponse
;
import
cn.com.glsx.merchants.enums.CommonStatusEnum
;
import
cn.com.glsx.merchants.model.request.MerchantRoleRequest
;
import
cn.com.glsx.merchants.model.request.MerchantRoleRequest
;
import
cn.com.glsx.merchants.model.request.RoleAccountRelationRequest
;
import
cn.com.glsx.merchants.model.request.RoleAccountRelationRequest
;
import
cn.com.glsx.merchants.model.request.RoleFunctionRelationRequest
;
import
cn.com.glsx.merchants.model.request.RoleFunctionRelationRequest
;
...
@@ -15,10 +16,7 @@ import cn.com.glsx.merchants.remote.MerchantRoleRemote;
...
@@ -15,10 +16,7 @@ import cn.com.glsx.merchants.remote.MerchantRoleRemote;
import
cn.com.glsx.merchants.request.FunctionRequest
;
import
cn.com.glsx.merchants.request.FunctionRequest
;
import
cn.com.glsx.merchants.request.ProductRequest
;
import
cn.com.glsx.merchants.request.ProductRequest
;
import
cn.com.glsx.merchants.request.role.*
;
import
cn.com.glsx.merchants.request.role.*
;
import
cn.com.glsx.merchants.response.FunctionRelationResponse
;
import
cn.com.glsx.merchants.response.*
;
import
cn.com.glsx.merchants.response.ProductRelationResponse
;
import
cn.com.glsx.merchants.response.RoleAccountTypeResponse
;
import
cn.com.glsx.merchants.response.RoleResponse
;
import
cn.com.glsx.merchants.util.Pagination
;
import
cn.com.glsx.merchants.util.Pagination
;
import
com.github.dozermapper.core.Mapper
;
import
com.github.dozermapper.core.Mapper
;
import
com.glsx.plat.common.annotation.SysLog
;
import
com.glsx.plat.common.annotation.SysLog
;
...
@@ -132,7 +130,9 @@ public class MerchantRoleService {
...
@@ -132,7 +130,9 @@ public class MerchantRoleService {
RpcResponse
<
RpcPagination
<
MerchantRoleResponse
>>
response
=
RpcResponse
<
RpcPagination
<
MerchantRoleResponse
>>
response
=
roleRemote
.
getRolePageRemote
(
pagination
);
roleRemote
.
getRolePageRemote
(
pagination
);
if
(
response
.
isSuccess
()){
if
(
response
.
isSuccess
()){
return
ConvertResponse
.
convertPage
(
response
.
getResult
(),
RoleResponse
.
class
);
Pagination
<
RoleResponse
>
res
=
ConvertResponse
.
convertPage
(
response
.
getResult
(),
RoleResponse
.
class
);
res
.
getData
().
stream
().
forEach
(
index
->
index
.
setStatusName
(
CommonStatusEnum
.
getText
(
index
.
getDelFlag
())));
return
res
;
}
}
throw
new
RpcServiceException
(
response
.
getException
().
getErrId
(),
response
.
getMessage
());
throw
new
RpcServiceException
(
response
.
getException
().
getErrId
(),
response
.
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