Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
e6b961be
Commit
e6b961be
authored
Apr 24, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企业门店初始化
parent
7e750ded
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
6 deletions
+19
-6
WxEnterpriseRelatedApiServiceImpl.java
...e/service/out/impl/WxEnterpriseRelatedApiServiceImpl.java
+2
-2
ServiceTest.java
haoban-manage3-service/src/test/java/ServiceTest.java
+17
-4
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/WxEnterpriseRelatedApiServiceImpl.java
View file @
e6b961be
...
...
@@ -323,8 +323,8 @@ public class WxEnterpriseRelatedApiServiceImpl implements WxEnterpriseRelatedApi
@Override
public
void
flushBindStoreByDelayMq
(
String
message
)
{
logger
.
info
(
"刷新绑定门店
:{}"
,
message
);
FlushStoreMqDTO
flushStoreMqDTO
=
JSONObject
.
parseObject
(
message
,
FlushStoreMqDTO
.
class
);
logger
.
info
(
"刷新绑定门店队列开始
:{}"
,
message
);
FlushStoreMqDTO
flushStoreMqDTO
=
JSONObject
.
parseObject
(
message
,
FlushStoreMqDTO
.
class
);
ServiceResponse
response
=
this
.
flushBindStoreByEnterpriseId
(
flushStoreMqDTO
.
getEnterpriseId
(),
flushStoreMqDTO
.
getWxEnterpriseId
()
,
flushStoreMqDTO
.
getOptStaffId
(),
flushStoreMqDTO
.
getChannalCode
());
logger
.
info
(
"刷新绑定结束:{}"
,
JSONObject
.
toJSONString
(
response
));
...
...
haoban-manage3-service/src/test/java/ServiceTest.java
View file @
e6b961be
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.commons.util.GICMQClientUtil
;
import
com.gic.haoban.base.api.common.ServiceResponse
;
import
com.gic.haoban.manage.api.dto.FlushStoreMqDTO
;
import
com.gic.haoban.manage.api.dto.MaterialDTO
;
import
com.gic.haoban.manage.api.enums.ChannelCodeEnum
;
import
com.gic.haoban.manage.api.service.*
;
...
...
@@ -58,11 +59,23 @@ public class ServiceTest {
@Test
public
void
test11
()
{
List
<
String
>
ids
=
new
ArrayList
<>();
ids
.
add
(
"8f5ddb9df0a54332acfa2d5804e90c64"
);
List
<
MaterialDTO
>
materialDTOS
=
materialApiService
.
listMaterialByIds
(
ids
);
FlushStoreMqDTO
flushStoreMqDTO
=
new
FlushStoreMqDTO
();
flushStoreMqDTO
.
setEnterpriseId
(
"testEnteroriseId"
);
int
i
=
2
;
while
(
i
--
>
0
)
{
try
{
Thread
.
sleep
(
1000
);
}
catch
(
InterruptedException
e
)
{
e
.
printStackTrace
();
}
wxEnterpriseRelatedApiService
.
flushBindStoreToDelayMq
(
"testEnteroriseId"
,
flushStoreMqDTO
);
}
System
.
out
.
println
(
JSONObject
.
toJSONString
(
materialDTOS
));
// List<String> ids = new ArrayList<>();
// ids.add("8f5ddb9df0a54332acfa2d5804e90c64");
// List<MaterialDTO> materialDTOS = materialApiService.listMaterialByIds(ids);
//
// System.out.println(JSONObject.toJSONString(materialDTOS));
// ServiceResponse response = wxEnterpriseRelatedApiService.flushBindStoreByEnterpriseId("ff8080815dacd3a2015dacd3ef5c0000"
// , "ca66a01b79474c40b3e7c7f93daf1a3b", "-1", ChannelCodeEnum.SYNC_UNBIND.getCode());
// System.out.println(JSONObject.toJSONString(response));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment