Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
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 93b5a5bf
authored
Oct 13, 2020
by
13003003657
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
对接群成员活码
1 parent
58f3f484
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
linkwe-admin/src/main/resources/application.yml
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/dto/WeExternalContactDto.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeEmpleCodeServiceImpl.java
linkwe-admin/src/main/resources/application.yml
View file @
93b5a5b
...
...
@@ -128,5 +128,5 @@ wecome:
serverUrl
:
https://qyapi.weixin.qq.com/
weComePrefix
:
cgi-bin
noAccessTokenUrl
:
/gettoken
needContactTokenUrl
:
/externalcontact/get_follow_user_list
needContactTokenUrl
:
/externalcontact/get_follow_user_list
,/externalcontact/add_contact_way
fileUplodUrl
:
/media/upload,/media/uploadimg
\ No newline at end of file
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/dto/WeExternalContactDto.java
View file @
93b5a5b
...
...
@@ -41,7 +41,7 @@ public class WeExternalContactDto extends WeResultDto {
//企业自定义的state参数,用于区分不同的添加渠道,在调用“获取外部联系人详情”时会返回该参数值,不超过30个字符
private
String
state
;
//
private String state;
public
WeContactWay
()
{
}
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeEmpleCodeServiceImpl.java
View file @
93b5a5b
...
...
@@ -100,18 +100,19 @@ public class WeEmpleCodeServiceImpl implements IWeEmpleCodeService
iWeEmpleCodeUseScopService
.
batchInsetWeEmpleCodeUseScop
(
weEmpleCodeUseScops
);
List
<
WeEmpleCodeTag
>
weEmpleCodeTags
=
weEmpleCode
.
getWeEmpleCodeTags
().
stream
().
filter
(
v
->
v
.
getTagId
()!=
null
).
collect
(
Collectors
.
toList
());
if
(
CollectionUtil
.
isNotEmpty
(
weEmpleCodeTags
)){
//批量保存标签
weEmpleCodeTags
.
stream
().
forEach
(
v
->
v
.
setEmpleCodeId
(
weEmpleCode
.
getId
()));
weEmpleCodeTagService
.
batchInsetWeEmpleCodeTag
(
weEmpleCodeTags
);
}
//
List<WeEmpleCodeTag> weEmpleCodeTags = weEmpleCode.getWeEmpleCodeTags().stream().filter(v->v.getTagId()!=null).collect(Collectors.toList());
//
if(CollectionUtil.isNotEmpty(weEmpleCodeTags)){
//
//批量保存标签
//
weEmpleCodeTags.stream().forEach(v->v.setEmpleCodeId(weEmpleCode.getId()));
//
weEmpleCodeTagService.batchInsetWeEmpleCodeTag(weEmpleCodeTags);
//
}
if
(!
weEmpleCode
.
getCodeType
().
equals
(
WeConstans
.
BATCH_SINGLE_EMPLE_CODE_TYPE
)){
WeExternalContactDto
.
WeContactWay
weContactWay
=
new
WeExternalContactDto
.
WeContactWay
(
weEmpleCode
.
getCodeType
(),
//
WeExternalContactDto
.
WeContactWay
weContactWay
=
new
WeExternalContactDto
.
WeContactWay
(
weEmpleCode
.
getCodeType
(),
WeConstans
.
QR_CODE_EMPLE_CODE_SCENE
,
weEmpleCode
.
getIsJoinConfirmFriends
());
...
...
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