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 283106ff
authored
Aug 07, 2021
by
wangnb
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
账户体系账户类型菜单树调整--think.wang
1 parent
b43a9c4c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
src/main/java/cn/com/glsx/merchants/controller/MerchantAccountTypeController.java
src/main/java/cn/com/glsx/merchants/request/accounttype/AccountTypeSearchRequest.java
src/main/java/cn/com/glsx/merchants/service/MerchantAccountTypeService.java
src/main/java/cn/com/glsx/merchants/controller/MerchantAccountTypeController.java
View file @
283106f
...
@@ -2,7 +2,7 @@ package cn.com.glsx.merchants.controller;
...
@@ -2,7 +2,7 @@ package cn.com.glsx.merchants.controller;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
cn.com.glsx.merchants.model.response.Account
Product
TreeResponse
;
import
cn.com.glsx.merchants.model.response.AccountTreeResponse
;
import
cn.com.glsx.merchants.request.accounttype.*
;
import
cn.com.glsx.merchants.request.accounttype.*
;
import
cn.com.glsx.merchants.response.AccountTypeResponse
;
import
cn.com.glsx.merchants.response.AccountTypeResponse
;
import
cn.com.glsx.merchants.service.MerchantAccountTypeService
;
import
cn.com.glsx.merchants.service.MerchantAccountTypeService
;
...
@@ -90,7 +90,7 @@ public class MerchantAccountTypeController {
...
@@ -90,7 +90,7 @@ public class MerchantAccountTypeController {
*/
*/
@ServiceMethod
(
method
=
"org.ore.api.accountType.getProductTreeList"
,
needInSession
=
NeedInSessionType
.
NO
)
@ServiceMethod
(
method
=
"org.ore.api.accountType.getProductTreeList"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"获取账户类型下产品菜单功能树"
)
@ApiOperation
(
"获取账户类型下产品菜单功能树"
)
public
RopResponse
<
List
<
Account
Product
TreeResponse
>>
getProductTreeList
(
AccountTypeSearchRequest
request
)
{
public
RopResponse
<
List
<
AccountTreeResponse
>>
getProductTreeList
(
AccountTypeSearchRequest
request
)
{
try
{
try
{
return
RopResponse
.
success
(
accountTypeService
.
getProductTreeList
(
request
));
return
RopResponse
.
success
(
accountTypeService
.
getProductTreeList
(
request
));
}
catch
(
RpcServiceException
e
)
{
}
catch
(
RpcServiceException
e
)
{
...
...
src/main/java/cn/com/glsx/merchants/request/accounttype/AccountTypeSearchRequest.java
View file @
283106f
...
@@ -4,12 +4,17 @@ import com.rop.AbstractRopRequest;
...
@@ -4,12 +4,17 @@ import com.rop.AbstractRopRequest;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.List
;
@Data
@Data
public
class
AccountTypeSearchRequest
extends
AbstractRopRequest
{
public
class
AccountTypeSearchRequest
extends
AbstractRopRequest
{
@ApiModelProperty
(
notes
=
"账户类型id"
,
name
=
"id"
,
dataType
=
"Integer"
)
@ApiModelProperty
(
notes
=
"账户类型id"
,
name
=
"id"
,
dataType
=
"Integer"
)
private
Integer
id
;
private
Integer
id
;
@ApiModelProperty
(
notes
=
"账户类型id列表"
,
name
=
"id"
,
dataType
=
"Integer"
)
private
List
<
Integer
>
idList
;
@ApiModelProperty
(
notes
=
"商户id"
,
name
=
"merchantId"
,
dataType
=
"Integer"
)
@ApiModelProperty
(
notes
=
"商户id"
,
name
=
"merchantId"
,
dataType
=
"Integer"
)
private
Integer
merchantId
;
private
Integer
merchantId
;
...
...
src/main/java/cn/com/glsx/merchants/service/MerchantAccountTypeService.java
View file @
283106f
...
@@ -9,7 +9,7 @@ import cn.com.glsx.merchants.enums.CommonStatusEnum;
...
@@ -9,7 +9,7 @@ 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
;
import
cn.com.glsx.merchants.model.response.Account
Product
TreeResponse
;
import
cn.com.glsx.merchants.model.response.AccountTreeResponse
;
import
cn.com.glsx.merchants.model.response.MerchantAccountTypeResponse
;
import
cn.com.glsx.merchants.model.response.MerchantAccountTypeResponse
;
import
cn.com.glsx.merchants.remote.MerchantAccountTypeRemote
;
import
cn.com.glsx.merchants.remote.MerchantAccountTypeRemote
;
import
cn.com.glsx.merchants.request.FunctionRequest
;
import
cn.com.glsx.merchants.request.FunctionRequest
;
...
@@ -149,9 +149,9 @@ public class MerchantAccountTypeService {
...
@@ -149,9 +149,9 @@ public class MerchantAccountTypeService {
* @return
* @return
*/
*/
@SysLog
(
value
=
"获取账户类型下产品菜单功能树"
,
action
=
OperateType
.
QUERY
,
module
=
"账户类型管理"
)
@SysLog
(
value
=
"获取账户类型下产品菜单功能树"
,
action
=
OperateType
.
QUERY
,
module
=
"账户类型管理"
)
public
List
<
Account
Product
TreeResponse
>
getProductTreeList
(
AccountTypeSearchRequest
request
)
{
public
List
<
AccountTreeResponse
>
getProductTreeList
(
AccountTypeSearchRequest
request
)
{
RpcResponse
<
List
<
Account
Product
TreeResponse
>>
response
=
RpcResponse
<
List
<
AccountTreeResponse
>>
response
=
accountTypeRemote
.
getProductTreeListByTypeId
(
request
.
getId
(),
request
.
getAccountLevel
(),
request
.
getMerchantId
());
accountTypeRemote
.
getProductTreeListByTypeId
(
request
.
getId
List
(),
request
.
getAccountLevel
(),
request
.
getMerchantId
());
if
(
response
.
isSuccess
()){
if
(
response
.
isSuccess
()){
return
response
.
getResult
();
return
response
.
getResult
();
}
}
...
...
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