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 3ff0a872
authored
Mar 10, 2022
by
wanghao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Merge all from merchant_1.0.3_0309
1 parent
c3a4bcc5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
src/main/java/cn/com/glsx/merchants/request/merchant/MerchantSearchResquest.java
src/main/java/cn/com/glsx/merchants/service/MerchantService.java
src/main/java/cn/com/glsx/merchants/request/merchant/MerchantSearchResquest.java
View file @
3ff0a87
...
@@ -79,4 +79,8 @@ public class MerchantSearchResquest extends DefaultRequest {
...
@@ -79,4 +79,8 @@ public class MerchantSearchResquest extends DefaultRequest {
*/
*/
@ApiModelProperty
(
notes
=
"父商户号"
)
@ApiModelProperty
(
notes
=
"父商户号"
)
private
Integer
parentMerchantNo
;
private
Integer
parentMerchantNo
;
public
Integer
getSuperMerchantNo
(){
return
super
.
getMerchantNo
();
}
}
}
src/main/java/cn/com/glsx/merchants/service/MerchantService.java
View file @
3ff0a87
...
@@ -9,12 +9,14 @@ import cn.com.glsx.merchants.enums.BusinessExceptionEnum;
...
@@ -9,12 +9,14 @@ import cn.com.glsx.merchants.enums.BusinessExceptionEnum;
import
cn.com.glsx.merchants.model.request.*
;
import
cn.com.glsx.merchants.model.request.*
;
import
cn.com.glsx.merchants.model.response.*
;
import
cn.com.glsx.merchants.model.response.*
;
import
cn.com.glsx.merchants.remote.MerchantRemote
;
import
cn.com.glsx.merchants.remote.MerchantRemote
;
import
cn.com.glsx.merchants.request.DefaultRequest
;
import
cn.com.glsx.merchants.request.accounttype.AccountTypeSearchRequest
;
import
cn.com.glsx.merchants.request.accounttype.AccountTypeSearchRequest
;
import
cn.com.glsx.merchants.request.file.FileSaveRequest
;
import
cn.com.glsx.merchants.request.file.FileSaveRequest
;
import
cn.com.glsx.merchants.request.merchant.*
;
import
cn.com.glsx.merchants.request.merchant.*
;
import
cn.com.glsx.merchants.request.role.RoleSearchRequest
;
import
cn.com.glsx.merchants.request.role.RoleSearchRequest
;
import
cn.com.glsx.merchants.response.*
;
import
cn.com.glsx.merchants.response.*
;
import
cn.com.glsx.merchants.util.Pagination
;
import
cn.com.glsx.merchants.util.Pagination
;
import
cn.hutool.log.Log
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.glsx.plat.common.annotation.SysLog
;
import
com.glsx.plat.common.annotation.SysLog
;
import
com.glsx.plat.common.enums.OperateType
;
import
com.glsx.plat.common.enums.OperateType
;
...
@@ -25,6 +27,7 @@ import org.springframework.beans.BeanUtils;
...
@@ -25,6 +27,7 @@ import org.springframework.beans.BeanUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.lang.reflect.Field
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
...
@@ -198,7 +201,11 @@ public class MerchantService {
...
@@ -198,7 +201,11 @@ public class MerchantService {
* @return
* @return
*/
*/
public
Pagination
<
MerchantRopResponse
>
findMerchantByPage
(
MerchantSearchResquest
merchantSearchResquest
)
{
public
Pagination
<
MerchantRopResponse
>
findMerchantByPage
(
MerchantSearchResquest
merchantSearchResquest
)
{
RpcResponse
<
RpcPagination
<
MerchantResponse
>>
merProductByPageRemote
=
merchantRemote
.
findMerchantByPageRemote
(
ConvertRequest
.
convertPage
(
merchantSearchResquest
,
new
MerchantRequest
()));
RpcPagination
<
MerchantRequest
>
merchantRequestRpcPagination
=
ConvertRequest
.
convertPage
(
merchantSearchResquest
,
new
MerchantRequest
());
MerchantRequest
condition
=
merchantRequestRpcPagination
.
getCondition
();
Integer
superMerchantNo
=
merchantSearchResquest
.
getSuperMerchantNo
();
condition
.
setSuperMerchantNo
(
superMerchantNo
);
RpcResponse
<
RpcPagination
<
MerchantResponse
>>
merProductByPageRemote
=
merchantRemote
.
findMerchantByPageRemote
(
merchantRequestRpcPagination
);
if
(
merProductByPageRemote
.
isSuccess
())
{
if
(
merProductByPageRemote
.
isSuccess
())
{
return
ConvertResponse
.
convertPage
(
merProductByPageRemote
.
getResult
(),
MerchantRopResponse
.
class
);
return
ConvertResponse
.
convertPage
(
merProductByPageRemote
.
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