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
ab4989c9
Commit
ab4989c9
authored
Apr 20, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
绑定的时候 新增小程序配置
parent
45f36623
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
8 deletions
+14
-8
TabHaobanMaterialMapper.xml
...ice/src/main/resources/mapper/TabHaobanMaterialMapper.xml
+1
-1
ServiceTest.java
haoban-manage3-service/src/test/java/ServiceTest.java
+13
-7
No files found.
haoban-manage3-service/src/main/resources/mapper/TabHaobanMaterialMapper.xml
View file @
ab4989c9
...
@@ -38,7 +38,7 @@
...
@@ -38,7 +38,7 @@
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from tab_haoban_material
from tab_haoban_material
where material_id in
where material_id in
<foreach
collection=
"materialIds"
item=
"item"
open=
"("
close=
")"
>
<foreach
collection=
"materialIds"
item=
"item"
open=
"("
close=
")"
separator=
","
>
#{item,jdbcType=VARCHAR}
#{item,jdbcType=VARCHAR}
</foreach>
</foreach>
</select>
</select>
...
...
haoban-manage3-service/src/test/java/ServiceTest.java
View file @
ab4989c9
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.commons.util.GICMQClientUtil
;
import
com.gic.commons.util.GICMQClientUtil
;
import
com.gic.haoban.base.api.common.ServiceResponse
;
import
com.gic.haoban.base.api.common.ServiceResponse
;
import
com.gic.haoban.manage.api.dto.MaterialDTO
;
import
com.gic.haoban.manage.api.enums.ChannelCodeEnum
;
import
com.gic.haoban.manage.api.enums.ChannelCodeEnum
;
import
com.gic.haoban.manage.api.service.DepartmentApiService
;
import
com.gic.haoban.manage.api.service.*
;
import
com.gic.haoban.manage.api.service.StaffApiService
;
import
com.gic.haoban.manage.api.service.TestApiService
;
import
com.gic.haoban.manage.api.service.WxEnterpriseRelatedApiService
;
import
com.gic.haoban.manage.service.service.MemberUnionRelatedService
;
import
com.gic.haoban.manage.service.service.MemberUnionRelatedService
;
import
com.gic.mq.sdk.GicMQClient
;
import
com.gic.mq.sdk.GicMQClient
;
import
com.gic.wechat.api.service.qywx.QywxDepartmentApiService
;
import
com.gic.wechat.api.service.qywx.QywxDepartmentApiService
;
...
@@ -51,15 +49,23 @@ public class ServiceTest {
...
@@ -51,15 +49,23 @@ public class ServiceTest {
@Autowired
@Autowired
private
MemberUnionRelatedService
memberUnionRelatedService
;
private
MemberUnionRelatedService
memberUnionRelatedService
;
@Autowired
private
MaterialApiService
materialApiService
;
private
final
ExecutorService
pools
=
Executors
.
newFixedThreadPool
(
50
);
private
final
ExecutorService
pools
=
Executors
.
newFixedThreadPool
(
50
);
@Test
@Test
public
void
test11
()
{
public
void
test11
()
{
ServiceResponse
response
=
wxEnterpriseRelatedApiService
.
flushBindStoreByEnterpriseId
(
"ff8080815dacd3a2015dacd3ef5c0000"
List
<
String
>
ids
=
new
ArrayList
<>();
,
"ca66a01b79474c40b3e7c7f93daf1a3b"
,
"-1"
,
ChannelCodeEnum
.
SYNC_UNBIND
.
getCode
());
ids
.
add
(
"8f5ddb9df0a54332acfa2d5804e90c64"
);
System
.
out
.
println
(
JSONObject
.
toJSONString
(
response
));
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