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 97a227e8
authored
Apr 10, 2024
by
yelq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Merge all from rop-merchant scrm_v3.25.4_20240409
1 parent
110e288d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
1 deletions
pom.xml
src/main/java/cn/com/glsx/merchants/controller/OpenController.java
src/main/java/cn/com/glsx/merchants/request/merchant/MerchantBasicInfoRopRequest.java
src/main/java/cn/com/glsx/merchants/service/OpenService.java
pom.xml
View file @
97a227e
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<dependency>
<dependency>
<groupId>
cn.com.glsx.merchants
</groupId>
<groupId>
cn.com.glsx.merchants
</groupId>
<artifactId>
platform-merchants-api
</artifactId>
<artifactId>
platform-merchants-api
</artifactId>
<version>
DJ-4.36.0
-SNAPSHOT
</version>
<version>
3.25.4
-SNAPSHOT
</version>
</dependency>
</dependency>
<!--引用GSON,用于打印-->
<!--引用GSON,用于打印-->
<dependency>
<dependency>
...
...
src/main/java/cn/com/glsx/merchants/controller/OpenController.java
View file @
97a227e
...
@@ -5,6 +5,7 @@ import cn.com.glsx.framework.core.exception.RpcServiceException;
...
@@ -5,6 +5,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.model.response.merchant.MerchantBasicInfoListResponse
;
import
cn.com.glsx.merchants.request.accounttype.MerchantListByConditionRopRequest
;
import
cn.com.glsx.merchants.request.accounttype.MerchantListByConditionRopRequest
;
import
cn.com.glsx.merchants.request.merchant.*
;
import
cn.com.glsx.merchants.request.merchant.*
;
import
cn.com.glsx.merchants.request.open.*
;
import
cn.com.glsx.merchants.request.open.*
;
...
@@ -680,6 +681,16 @@ public class OpenController {
...
@@ -680,6 +681,16 @@ public class OpenController {
return
RopResponse
.
error
(
e
.
getMessage
());
return
RopResponse
.
error
(
e
.
getMessage
());
}
}
}
}
@ApiOperation
(
"查询商户信息(带开关)"
)
@ServiceMethod
(
method
=
"merchants.api.open.merchant.info"
,
needInSession
=
NeedInSessionType
.
NO
)
public
RopResponse
<
Pagination
<
MerchantBasicInfoListResponse
>>
findMerchantBasicInfoList
(
MerchantBasicInfoRopRequest
request
){
try
{
return
RopResponse
.
success
(
openService
.
findMerchantBasicInfoList
(
request
));
}
catch
(
Exception
e
)
{
log
.
info
(
"查询商户信息(带开关):{}"
,
e
);
return
RopResponse
.
error
(
e
.
getMessage
());
}
}
}
}
...
...
src/main/java/cn/com/glsx/merchants/request/merchant/MerchantBasicInfoRopRequest.java
0 → 100644
View file @
97a227e
package
cn
.
com
.
glsx
.
merchants
.
request
.
merchant
;
import
cn.com.glsx.merchants.model.request.merchant.BrandRequest
;
import
cn.com.glsx.merchants.model.request.merchant.MerchantInfoSwitch
;
import
com.rop.AbstractRopRequest
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.List
;
@Data
public
class
MerchantBasicInfoRopRequest
extends
AbstractRopRequest
implements
Serializable
{
@ApiModelProperty
(
"商户号集合"
)
private
List
<
Integer
>
merchantIdList
;
@ApiModelProperty
(
"商户名称"
)
private
String
merchantName
;
@ApiModelProperty
(
"页码"
)
private
Integer
pageNum
;
@ApiModelProperty
(
"每页数量"
)
private
Integer
pageSize
;
@ApiModelProperty
(
"商户层级"
)
private
List
<
Integer
>
merchantAccountLevel
;
@ApiModelProperty
(
"账户类型"
)
private
List
<
Integer
>
accountType
;
@ApiModelProperty
(
"渠道id"
)
private
Integer
channelId
;
@ApiModelProperty
(
"品牌参数信息"
)
private
List
<
BrandRequest
>
brandRequestList
;
@ApiModelProperty
(
"商户信息开关"
)
private
MerchantInfoSwitch
merchantInfoSwitch
;
}
src/main/java/cn/com/glsx/merchants/service/OpenService.java
View file @
97a227e
...
@@ -9,10 +9,12 @@ import cn.com.glsx.merchants.convert.ConvertResponse;
...
@@ -9,10 +9,12 @@ import cn.com.glsx.merchants.convert.ConvertResponse;
import
cn.com.glsx.merchants.model.request.*
;
import
cn.com.glsx.merchants.model.request.*
;
import
cn.com.glsx.merchants.model.request.MerchantBrandRequest
;
import
cn.com.glsx.merchants.model.request.MerchantBrandRequest
;
import
cn.com.glsx.merchants.model.request.merchant.FindBySupMerchantNoRpcRequest
;
import
cn.com.glsx.merchants.model.request.merchant.FindBySupMerchantNoRpcRequest
;
import
cn.com.glsx.merchants.model.request.merchant.MerchantBasicInfoRequest
;
import
cn.com.glsx.merchants.model.request.merchant.MerchantListByConditionRpcRequest
;
import
cn.com.glsx.merchants.model.request.merchant.MerchantListByConditionRpcRequest
;
import
cn.com.glsx.merchants.model.request.merchant.MerchantNoRpcRequest
;
import
cn.com.glsx.merchants.model.request.merchant.MerchantNoRpcRequest
;
import
cn.com.glsx.merchants.model.request.serviceCenter.*
;
import
cn.com.glsx.merchants.model.request.serviceCenter.*
;
import
cn.com.glsx.merchants.model.response.*
;
import
cn.com.glsx.merchants.model.response.*
;
import
cn.com.glsx.merchants.model.response.merchant.MerchantBasicInfoListResponse
;
import
cn.com.glsx.merchants.model.response.serviceCenter.MerchantDetailResponse
;
import
cn.com.glsx.merchants.model.response.serviceCenter.MerchantDetailResponse
;
import
cn.com.glsx.merchants.model.response.serviceCenter.SearchMerchantRpcResponse
;
import
cn.com.glsx.merchants.model.response.serviceCenter.SearchMerchantRpcResponse
;
import
cn.com.glsx.merchants.model.response.serviceCenter.ServiceStaffRpcResponse
;
import
cn.com.glsx.merchants.model.response.serviceCenter.ServiceStaffRpcResponse
;
...
@@ -526,4 +528,12 @@ public class OpenService {
...
@@ -526,4 +528,12 @@ public class OpenService {
}
}
throw
new
RpcServiceException
(
rpcResponse
.
getError
(),
rpcResponse
.
getException
().
getErrId
(),
rpcResponse
.
getMessage
());
throw
new
RpcServiceException
(
rpcResponse
.
getError
(),
rpcResponse
.
getException
().
getErrId
(),
rpcResponse
.
getMessage
());
}
}
public
Pagination
<
MerchantBasicInfoListResponse
>
findMerchantBasicInfoList
(
MerchantBasicInfoRopRequest
request
)
{
RpcResponse
<
RpcPagination
<
MerchantBasicInfoListResponse
>>
rpcResponse
=
merchantRemote
.
findMerchantBasicInfoList
(
ConvertRequest
.
convertRequest
(
request
,
new
MerchantBasicInfoRequest
()));
if
(
rpcResponse
.
isSuccess
())
{
return
ConvertResponse
.
convertPage
(
rpcResponse
.
getResult
(),
MerchantBasicInfoListResponse
.
class
);
}
throw
new
RpcServiceException
(
rpcResponse
.
getError
(),
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