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 11d44a3d
authored
Oct 11, 2021
by
linkwechat8856@163.com
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'back_end_dev'
2 parents
3f1e5250
cd1f0ddb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
7 deletions
linkwe-admin/pom.xml
linkwe-wecom/src/main/java/com/linkwechat/wecom/client/WeCropTagClient.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/client/WeCustomerMessagePushClient.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerMessageServiceImpl.java
linkwe-admin/pom.xml
View file @
11d44a3
...
...
@@ -79,10 +79,13 @@
<artifactId>
jaxb-api
</artifactId>
</dependency>
<dependency>
<groupId>
io.github.leejoker
</groupId>
<artifactId>
linkwechat-nacos-starter
</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>io.github.leejoker</groupId>-->
<!-- <artifactId>linkwechat-nacos-starter</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>
org.projectlombok
</groupId>
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/client/WeCropTagClient.java
View file @
11d44a3
...
...
@@ -43,7 +43,7 @@ public interface WeCropTagClient {
@Request
(
url
=
"/externalcontact/get_corp_tag_list"
,
type
=
"POST"
)
WeCropGroupTagListDto
getCorpTagListByTagIds
(
@Body
WeFindCropTagParam
weFindCropTagParam
);
WeCropGroupTagListDto
getCorpTagListByTagIds
(
@
JSON
Body
WeFindCropTagParam
weFindCropTagParam
);
/**
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/client/WeCustomerMessagePushClient.java
View file @
11d44a3
...
...
@@ -25,7 +25,7 @@ public interface WeCustomerMessagePushClient {
@Request
(
url
=
"/externalcontact/add_msg_template"
,
type
=
"POST"
)
SendMessageResultDto
sendCustomerMessageToUser
(
@Body
WeCustomerMessagePushDto
customerMessagePushDto
);
SendMessageResultDto
sendCustomerMessageToUser
(
@
JSON
Body
WeCustomerMessagePushDto
customerMessagePushDto
);
/**
* 获取企业群发消息发送结果
...
...
@@ -36,7 +36,7 @@ public interface WeCustomerMessagePushClient {
@Request
(
url
=
"/externalcontact/get_group_msg_result"
,
type
=
"POST"
)
QueryCustomerMessageStatusResultDto
queryCustomerMessageStatus
(
@Body
QueryCustomerMessageStatusResultDataObjectDto
queryCustomerMessageStatusResultDataObjectDto
);
QueryCustomerMessageStatusResultDto
queryCustomerMessageStatus
(
@
JSON
Body
QueryCustomerMessageStatusResultDataObjectDto
queryCustomerMessageStatusResultDataObjectDto
);
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerMessageServiceImpl.java
View file @
11d44a3
package
com
.
linkwechat
.
wecom
.
service
.
impl
;
import
cn.hutool.core.io.FileUtil
;
import
cn.hutool.core.util.ArrayUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
...
...
@@ -24,6 +25,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Service
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.stream.Collectors
;
...
...
@@ -106,6 +108,7 @@ public class WeCustomerMessageServiceImpl extends ServiceImpl<WeCustomerMessageM
List
<
String
>
externalUserIds
=
customers
.
stream
().
map
(
WeCustomer:
:
getExternalUserid
).
collect
(
Collectors
.
toList
());
messagePushDto
.
setExternal_userid
(
externalUserIds
);
messagePushDto
.
setSender
(
customerMessagePushDto
.
getStaffId
());
childMessage
(
messagePushDto
,
customerMessagePushDto
);
SendMessageResultDto
sendMessageResultDto
=
weCustomerMessagePushClient
.
sendCustomerMessageToUser
(
messagePushDto
);
if
(
WeConstans
.
WE_SUCCESS_CODE
.
equals
(
sendMessageResultDto
.
getErrcode
()))
{
...
...
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