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 5ef06e9a
authored
Mar 29, 2021
by
leejoker
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
🎨
调整格式
1 parent
3bd1fc6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerMessagePushServiceImpl.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerMessagePushServiceImpl.java
View file @
5ef06e9
...
@@ -96,12 +96,9 @@ public class WeCustomerMessagePushServiceImpl implements IWeCustomerMessagePushS
...
@@ -96,12 +96,9 @@ public class WeCustomerMessagePushServiceImpl implements IWeCustomerMessagePushS
// 1 发给客户群
// 1 发给客户群
if
(
customerMessagePushDto
.
getPushType
().
equals
(
WeConstans
.
SEND_MESSAGE_GROUP
))
{
if
(
customerMessagePushDto
.
getPushType
().
equals
(
WeConstans
.
SEND_MESSAGE_GROUP
))
{
if
(
customerMessagePushDto
.
getStaffId
()
==
null
||
customerMessagePushDto
.
getStaffId
().
equals
(
""
))
{
if
(
customerMessagePushDto
.
getStaffId
()
==
null
||
customerMessagePushDto
.
getStaffId
().
equals
(
""
))
{
throw
new
WeComException
(
"请选择人员!"
);
throw
new
WeComException
(
"请选择人员!"
);
}
}
//查询群组信息列表
//通过员工id查询群列表
//通过员工id查询群列表
WeGroup
weGroup
=
new
WeGroup
();
WeGroup
weGroup
=
new
WeGroup
();
weGroup
.
setUserIds
(
customerMessagePushDto
.
getStaffId
());
weGroup
.
setUserIds
(
customerMessagePushDto
.
getStaffId
());
...
@@ -109,12 +106,10 @@ public class WeCustomerMessagePushServiceImpl implements IWeCustomerMessagePushS
...
@@ -109,12 +106,10 @@ public class WeCustomerMessagePushServiceImpl implements IWeCustomerMessagePushS
if
(
CollectionUtils
.
isEmpty
(
groups
))
{
if
(
CollectionUtils
.
isEmpty
(
groups
))
{
throw
new
WeComException
(
"没有客户群!"
);
throw
new
WeComException
(
"没有客户群!"
);
}
}
}
}
//保存原始数据信息表
//保存原始数据信息表
long
messageOriginalId
=
weCustomerMessageOriginalService
.
saveWeCustomerMessageOriginal
(
customerMessagePushDto
);
long
messageOriginalId
=
weCustomerMessageOriginalService
.
saveWeCustomerMessageOriginal
(
customerMessagePushDto
);
long
messageId
=
SnowFlakeUtil
.
nextId
();
long
messageId
=
SnowFlakeUtil
.
nextId
();
//保存映射信息
//保存映射信息
...
@@ -131,14 +126,10 @@ public class WeCustomerMessagePushServiceImpl implements IWeCustomerMessagePushS
...
@@ -131,14 +126,10 @@ public class WeCustomerMessagePushServiceImpl implements IWeCustomerMessagePushS
if
(
null
==
customerMessagePushDto
.
getSettingTime
()
||
customerMessagePushDto
.
getSettingTime
().
equals
(
""
))
{
if
(
null
==
customerMessagePushDto
.
getSettingTime
()
||
customerMessagePushDto
.
getSettingTime
().
equals
(
""
))
{
weCustomerMessageService
.
sendMessgae
(
customerMessagePushDto
,
messageId
,
customers
,
groups
);
weCustomerMessageService
.
sendMessgae
(
customerMessagePushDto
,
messageId
,
customers
,
groups
);
}
else
{
}
else
{
WeCustomerMessageTimeTask
timeTask
=
new
WeCustomerMessageTimeTask
(
messageId
,
customerMessagePushDto
,
customers
,
groups
WeCustomerMessageTimeTask
timeTask
=
new
WeCustomerMessageTimeTask
(
messageId
,
customerMessagePushDto
,
customers
,
groups
,
DateUtils
.
getMillionSceondsBydate
(
customerMessagePushDto
.
getSettingTime
()));
,
DateUtils
.
getMillionSceondsBydate
(
customerMessagePushDto
.
getSettingTime
()));
customerMessageTimeTaskMapper
.
saveWeCustomerMessageTimeTask
(
timeTask
);
customerMessageTimeTaskMapper
.
saveWeCustomerMessageTimeTask
(
timeTask
);
}
}
}
}
@Override
@Override
...
...
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