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 b68056cd
authored
Oct 09, 2022
by
xiongzs
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Merge all from rop-merchant
1 parent
5124116c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
0 deletions
src/main/java/cn/com/glsx/merchants/controller/OpenController.java
src/main/java/cn/com/glsx/merchants/request/merchant/MerchantNosRopRequest.java
src/main/java/cn/com/glsx/merchants/service/OpenService.java
src/main/java/cn/com/glsx/merchants/controller/OpenController.java
View file @
b68056c
...
@@ -4,6 +4,7 @@ import cn.com.glsx.framework.core.exception.RpcServiceException;
...
@@ -4,6 +4,7 @@ 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.MerchantStaffResponse
;
import
cn.com.glsx.merchants.model.response.MerchantStaffResponse
;
import
cn.com.glsx.merchants.model.response.MerchantSubListResponse
;
import
cn.com.glsx.merchants.model.response.MerchantSubListResponse
;
import
cn.com.glsx.merchants.request.merchant.MerchantNosRopRequest
;
import
cn.com.glsx.merchants.request.merchant.MerchantSaveOpenRequest
;
import
cn.com.glsx.merchants.request.merchant.MerchantSaveOpenRequest
;
import
cn.com.glsx.merchants.request.merchant.OpenMerchantPageRequest
;
import
cn.com.glsx.merchants.request.merchant.OpenMerchantPageRequest
;
import
cn.com.glsx.merchants.request.open.*
;
import
cn.com.glsx.merchants.request.open.*
;
...
@@ -454,4 +455,16 @@ public class OpenController {
...
@@ -454,4 +455,16 @@ public class OpenController {
return
RopResponse
.
error
(
e
.
getErrId
(),
e
.
getMessage
());
return
RopResponse
.
error
(
e
.
getErrId
(),
e
.
getMessage
());
}
}
}
}
@ServiceMethod
(
method
=
"merchants.api.open.findMerchantNoList"
,
needInSession
=
NeedInSessionType
.
NO
)
@ApiOperation
(
"根据条件查询商户号集合"
)
public
RopResponse
<
List
<
Integer
>>
findMerchantNoList
(
MerchantNosRopRequest
request
){
try
{
List
<
Integer
>
responses
=
openService
.
findMerchantNoList
(
request
);
return
RopResponse
.
success
(
responses
);
}
catch
(
RpcServiceException
e
)
{
log
.
info
(
"=======OpenController__invoke__findMerchantNoList__exception:{}"
,
e
.
getMessage
());
return
RopResponse
.
error
(
e
.
getErrId
(),
e
.
getMessage
());
}
}
}
}
\ No newline at end of file
\ No newline at end of file
src/main/java/cn/com/glsx/merchants/request/merchant/MerchantNosRopRequest.java
0 → 100644
View file @
b68056c
package
cn
.
com
.
glsx
.
merchants
.
request
.
merchant
;
import
cn.com.glsx.merchants.request.DefaultRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
/**
* @Author Hayreal
* @date 2022/9/21 18:15
* @Version 1.0
*/
@Data
public
class
MerchantNosRopRequest
extends
DefaultRequest
{
@ApiModelProperty
(
notes
=
"商户等级,1.工厂 2.省代 3.市代 4.门店"
)
private
Integer
merchantAccountLevel
;
@ApiModelProperty
(
notes
=
"商户模式,1.集团版 2.门店版"
)
private
Integer
merchantModel
;
@ApiModelProperty
(
notes
=
"渠道,1.嘀加 2.广汇"
)
private
Integer
channelId
;
}
src/main/java/cn/com/glsx/merchants/service/OpenService.java
View file @
b68056c
...
@@ -12,6 +12,7 @@ import cn.com.glsx.merchants.remote.MerchantRemote;
...
@@ -12,6 +12,7 @@ import cn.com.glsx.merchants.remote.MerchantRemote;
import
cn.com.glsx.merchants.remote.MerchantStaffRemote
;
import
cn.com.glsx.merchants.remote.MerchantStaffRemote
;
import
cn.com.glsx.merchants.remote.MerchantUserRemote
;
import
cn.com.glsx.merchants.remote.MerchantUserRemote
;
import
cn.com.glsx.merchants.request.file.FileSaveRequest
;
import
cn.com.glsx.merchants.request.file.FileSaveRequest
;
import
cn.com.glsx.merchants.request.merchant.MerchantNosRopRequest
;
import
cn.com.glsx.merchants.request.merchant.MerchantSaveOpenRequest
;
import
cn.com.glsx.merchants.request.merchant.MerchantSaveOpenRequest
;
import
cn.com.glsx.merchants.request.merchant.OpenMerchantPageRequest
;
import
cn.com.glsx.merchants.request.merchant.OpenMerchantPageRequest
;
import
cn.com.glsx.merchants.request.open.*
;
import
cn.com.glsx.merchants.request.open.*
;
...
@@ -354,4 +355,12 @@ public class OpenService {
...
@@ -354,4 +355,12 @@ public class OpenService {
return
rpcResponse
.
getResult
();
return
rpcResponse
.
getResult
();
throw
new
RpcServiceException
(
rpcResponse
.
getException
().
getErrId
(),
rpcResponse
.
getMessage
());
throw
new
RpcServiceException
(
rpcResponse
.
getException
().
getErrId
(),
rpcResponse
.
getMessage
());
}
}
public
List
<
Integer
>
findMerchantNoList
(
MerchantNosRopRequest
request
)
{
MerchantNoByConditionRpcRequest
remoteRequest
=
ConvertRequest
.
convertRequest
(
request
,
new
MerchantNoByConditionRpcRequest
());
RpcResponse
<
List
<
Integer
>>
rpcResponse
=
merchantRemote
.
findMerchantNoListByCondition
(
remoteRequest
);
if
(
rpcResponse
.
isSuccess
())
return
rpcResponse
.
getResult
();
throw
new
RpcServiceException
(
rpcResponse
.
getException
().
getErrId
(),
rpcResponse
.
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