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 b8f3bbb4
authored
Dec 27, 2020
by
18356073052
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
群发消息任务修改
1 parent
100a0d90
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerMessagePushServiceImpl.java
linkwe-wecom/src/main/resources/mapper/wecom/WeCustomerMessageOriginalMapper.xml
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerMessagePushServiceImpl.java
View file @
b8f3bbb
...
...
@@ -8,6 +8,7 @@ import com.linkwechat.common.constant.WeConstans;
import
com.linkwechat.common.enums.ChatType
;
import
com.linkwechat.common.exception.wecom.WeComException
;
import
com.linkwechat.common.utils.DateUtils
;
import
com.linkwechat.common.utils.SecurityUtils
;
import
com.linkwechat.common.utils.SnowFlakeUtil
;
import
com.linkwechat.wecom.client.WeCustomerMessagePushClient
;
import
com.linkwechat.wecom.domain.*
;
...
...
@@ -73,8 +74,6 @@ public class WeCustomerMessagePushServiceImpl implements IWeCustomerMessagePushS
public
void
addWeCustomerMessagePush
(
CustomerMessagePushDto
customerMessagePushDto
)
throws
JsonProcessingException
{
//立即发送
if
(
null
==
customerMessagePushDto
.
getSettingTime
()
||
customerMessagePushDto
.
getSettingTime
().
equals
(
""
))
{
customerMessagePushDto
.
setMessageType
(
"1"
);
sendMessgae
(
customerMessagePushDto
);
}
else
{
...
...
@@ -199,6 +198,7 @@ public class WeCustomerMessagePushServiceImpl implements IWeCustomerMessagePushS
customerMessage
.
setDelFlag
(
0
);
customerMessage
.
setContent
(
content
(
customerMessagePushDto
));
customerMessage
.
setSendInfo
(
sendInfo
.
toString
());
customerMessage
.
setCreateBy
(
SecurityUtils
.
getUsername
());
weCustomerMessageService
.
save
(
customerMessage
);
//保存分类消息信息
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeCustomerMessageOriginalMapper.xml
View file @
b8f3bbb
...
...
@@ -5,7 +5,7 @@
<mapper
namespace=
"com.linkwechat.wecom.mapper.WeCustomerMessageOriginalMapper"
>
<select
id=
"selectCustomerMessagePushs"
resultType=
"com.linkwechat.wecom.domain.vo.CustomerMessagePushVo"
>
SELECT
wcmo.push_type,wcmo.message_type,wcmo.push_range,wcm
o
.create_by sender,wcmo.create_time
wcmo.push_type,wcmo.message_type,wcmo.push_range,wcm.create_by sender,wcmo.create_time
sendTime,wcm.message_id,wcm.content,wcm.send_info
FROM we_customer_messageOriginal wcmo LEFT JOIN we_customer_message wcm ON
wcmo.message_original_Id=wcm.original_id
...
...
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