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 50ba0bd5
authored
Sep 22, 2021
by
zhouhb
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]代码提交
1 parent
fb6c892f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
11 deletions
src/main/java/cn/com/glsx/merchants/controller/OpenController.java
src/main/java/cn/com/glsx/merchants/request/merchant/OpenMerchantRequest.java
src/main/java/cn/com/glsx/merchants/service/OpenService.java
src/main/java/cn/com/glsx/merchants/controller/OpenController.java
View file @
50ba0bd
...
...
@@ -2,6 +2,7 @@ package cn.com.glsx.merchants.controller;
import
cn.com.glsx.framework.core.exception.RpcServiceException
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
cn.com.glsx.merchants.request.merchant.OpenMerchantPageRequest
;
import
cn.com.glsx.merchants.request.merchant.OpenMerchantRequest
;
import
cn.com.glsx.merchants.request.user.OpenUserRequest
;
import
cn.com.glsx.merchants.response.AccountTypeTreeRopResponse
;
...
...
@@ -83,7 +84,7 @@ public class OpenController {
@ServiceMethod
(
method
=
"cn.com.glsx.merchants.open.findSubordinateListByPage"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"根据商户查询商户下级列表"
)
public
RopResponse
<
Pagination
<
MerchantRopResponse
>>
findSubordinateListByPage
(
OpenMerchantRequest
openMerchantRequest
)
{
public
RopResponse
<
Pagination
<
MerchantRopResponse
>>
findSubordinateListByPage
(
OpenMerchant
Page
Request
openMerchantRequest
)
{
try
{
Pagination
<
MerchantRopResponse
>
subordinateListByPage
=
openService
.
findSubordinateListByPage
(
openMerchantRequest
);
return
RopResponse
.
success
(
subordinateListByPage
);
...
...
src/main/java/cn/com/glsx/merchants/request/merchant/OpenMerchantRequest.java
View file @
50ba0bd
...
...
@@ -4,8 +4,6 @@ import cn.com.glsx.merchants.request.DefaultRequest;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
javax.validation.constraints.NotNull
;
/**
* @author zhouhaibao
* @version 1.0
...
...
@@ -39,11 +37,4 @@ public class OpenMerchantRequest extends DefaultRequest {
@ApiModelProperty
(
notes
=
"商户号"
)
private
Integer
merchantId
;
@NotNull
@ApiModelProperty
(
notes
=
"分页数"
,
required
=
true
)
private
Integer
pageSize
;
@NotNull
@ApiModelProperty
(
notes
=
"当前页"
,
required
=
true
)
private
Integer
pageNum
;
}
src/main/java/cn/com/glsx/merchants/service/OpenService.java
View file @
50ba0bd
...
...
@@ -12,6 +12,7 @@ import cn.com.glsx.merchants.model.response.MerchantResponse;
import
cn.com.glsx.merchants.model.response.MerchantUserResponse
;
import
cn.com.glsx.merchants.remote.MerchantRemote
;
import
cn.com.glsx.merchants.remote.MerchantUserRemote
;
import
cn.com.glsx.merchants.request.merchant.OpenMerchantPageRequest
;
import
cn.com.glsx.merchants.request.merchant.OpenMerchantRequest
;
import
cn.com.glsx.merchants.request.user.OpenUserRequest
;
import
cn.com.glsx.merchants.response.AccountTypeTreeRopResponse
;
...
...
@@ -70,7 +71,7 @@ public class OpenService {
throw
new
RpcServiceException
(
merchantListRemote
.
getException
().
getErrId
(),
merchantListRemote
.
getMessage
());
}
public
Pagination
<
MerchantRopResponse
>
findSubordinateListByPage
(
OpenMerchantRequest
openMerchantRequest
)
{
public
Pagination
<
MerchantRopResponse
>
findSubordinateListByPage
(
OpenMerchant
Page
Request
openMerchantRequest
)
{
RpcResponse
<
RpcPagination
<
MerchantResponse
>>
subordinateListByPageRemote
=
merchantRemote
.
findSubordinateListByPageRemote
(
ConvertRequest
.
convertPage
(
openMerchantRequest
,
new
MerchantOpenRequest
()));
if
(
subordinateListByPageRemote
.
isSuccess
())
{
return
ConvertResponse
.
convertPage
(
subordinateListByPageRemote
.
getResult
(),
MerchantRopResponse
.
class
);
...
...
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