Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6c807f55
authored
Oct 24, 2023
by
刘鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FEAT: BEAN 接口连通性测试
1 parent
a2b2176d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
7 deletions
project-order/src/main/java/com/dituhui/pea/order/feign/IBeanRemoteService.java
project-order/src/main/java/com/dituhui/pea/order/service/impl/BeanRemoteServiceImpl.java
project-order/src/main/java/com/dituhui/pea/order/feign/IBeanRemoteService.java
View file @
6c807f5
...
...
@@ -77,7 +77,7 @@ public interface IBeanRemoteService {
/**
* 查询分部
列表
* 查询分部
详情
*
* @param accessToken ACCESS_TOKEN
* @param bsTagId 列表接口查到的bsId
...
...
project-order/src/main/java/com/dituhui/pea/order/service/impl/BeanRemoteServiceImpl.java
View file @
6c807f5
...
...
@@ -4,9 +4,7 @@ import com.dituhui.pea.common.BusinessException;
import
com.dituhui.pea.order.common.RedisService
;
import
com.dituhui.pea.order.common.jackson.JsonUtil
;
import
com.dituhui.pea.order.feign.IBeanRemoteService
;
import
com.dituhui.pea.order.feign.bean.AccessToken
;
import
com.dituhui.pea.order.feign.bean.BeanR
;
import
com.dituhui.pea.order.feign.bean.Department
;
import
com.dituhui.pea.order.feign.bean.*
;
import
lombok.RequiredArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.codec.digest.DigestUtils
;
...
...
@@ -37,10 +35,31 @@ public class BeanRemoteServiceImpl {
//TODO 仅用于联通测试
public
void
testAllDepartment
()
{
String
accessToken
=
getAccessToken
();
BeanR
<
List
<
Department
>>
listBeanR
=
beanRemoteService
.
allDepartment
(
accessToken
);
log
.
info
(
"[testAllDepartment]【/api/openapi/department/queryList】返回值-------------------->{}"
,
JsonUtil
.
toJson
(
listBeanR
));
final
String
accessToken
=
getAccessToken
();
//1.1 查询BEAN部门详情
BeanR
<
Department
>
departmentBeanR
=
beanRemoteService
.
departmentDetail
(
accessToken
,
"1643063176107991042"
);
log
.
info
(
"[查询BEAN部门详情]【/api/openapi/department/detail】返回值-------------------->{}"
,
JsonUtil
.
toJson
(
departmentBeanR
));
//1.2 查询BEAN维护的分部列表(大区-分部-分站&外围)
BeanR
<
List
<
BranchRes
>>
listBeanR1
=
beanRemoteService
.
departmentBranchList
(
accessToken
);
log
.
info
(
"[查询BEAN维护的分部列表]【/api/openapi/department/queryBranchList】返回值-------------------->{}"
,
JsonUtil
.
toJson
(
listBeanR1
));
//1.3 查询BEAN用户列表
BeanR
<
List
<
BeanAccountInfo
>>
listBeanR2
=
beanRemoteService
.
queryUserList
(
accessToken
,
"1341423191870971906"
);
log
.
info
(
"[查询BEAN用户列表]【/api/openapi/user/queryList】返回值-------------------->{}"
,
JsonUtil
.
toJson
(
listBeanR2
));
final
String
centerUserId
=
"nAOnU3BB6ioWLdZf"
;
//1.4 查询BEAN账号详情
BeanR
<
BeanUserDetail
>
beanUserDetailBeanR
=
beanRemoteService
.
userDetail
(
accessToken
,
centerUserId
);
log
.
info
(
"[查询BEAN用户详情]【/api/openapi/user/queryDetail】返回值-------------------->{}"
,
JsonUtil
.
toJson
(
beanUserDetailBeanR
));
//1.6 获取部门全量列表数据
BeanR
<
List
<
Department
>>
listBeanR
=
beanRemoteService
.
allDepartment
(
accessToken
);
log
.
info
(
"[查询BEAN部门全量列表]【/api/openapi/department/queryList】返回值-------------------->{}"
,
JsonUtil
.
toJson
(
listBeanR
));
//1.8 查询分部列表
BeanR
<
BranchDetail
>
branchDetailBeanR
=
beanRemoteService
.
branchDetail
(
accessToken
,
"1341423191870971906"
);
log
.
info
(
"[查询BEAN部门分部详情]【/api/openapi/department/getBranchDetail】返回值-------------------->{}"
,
JsonUtil
.
toJson
(
branchDetailBeanR
));
}
...
...
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