Commit e83b0e19 by zhouhaibao

feat(merchant): 新增商户详情查询接口

- 添加 getMerchantDetailNew 方法,支持通过商户ID获取商户详情
- 调用 merchantRemote.getByMerchantId 远程服务获取数据
- 注册服务方法 scrm.api.equity.common.merchant.detail.det.new
- 需要登录会话(NeedInSessionType.YES)
1 parent 70222b40
...@@ -55,6 +55,17 @@ public class MerchantController { ...@@ -55,6 +55,17 @@ public class MerchantController {
return RopResponse.error(rpcResponse1.getMessage()); return RopResponse.error(rpcResponse1.getMessage());
} }
@ServiceMethod(method="scrm.api.equity.common.merchant.detail.det.new", needInSession= NeedInSessionType.YES)
@ApiOperation("获取商户详情")
public RopResponse<MerchantRopResponse> getMerchantDetailNew(OpenCardByMerchantIdRequest ropRequest) throws UnsupportedEncodingException {
RpcResponse<MerchantRopResponse> rpcResponse1 = merchantRemote.getByMerchantId(ropRequest.getMerchantId());
if (rpcResponse1.isSuccess() && rpcResponse1.getResult() != null){
return RopResponse.success(rpcResponse1.getResult());
}
return RopResponse.error(rpcResponse1.getMessage());
}
@ServiceMethod(method="scrm.api.equity.common.merchant.current.det", needInSession= NeedInSessionType.YES) @ServiceMethod(method="scrm.api.equity.common.merchant.current.det", needInSession= NeedInSessionType.YES)
@ApiOperation("获取当前登录人的商户层级") @ApiOperation("获取当前登录人的商户层级")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!