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 0b70e5a9
authored
Dec 23, 2021
by
danmo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复已知bug
1 parent
a04e4931
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerTrajectoryServiceImpl.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/welcome/WelcomeService.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerTrajectoryServiceImpl.java
View file @
0b70e5a
...
...
@@ -80,9 +80,7 @@ public class WeCustomerTrajectoryServiceImpl extends ServiceImpl<WeCustomerTraje
.
trackState
(
trackState
)
.
build
();
if
(
TrajectorySceneType
.
TRAJECTORY_TITLE_TJYG
.
getType
().
equals
(
trajectorySence
)
||
TrajectorySceneType
.
TRAJECTORY_TITLE_SCYG
.
getType
().
equals
(
trajectorySence
)
||
TrajectorySceneType
.
TRAJECTORY_TITLE_DZPYQ
.
getType
().
equals
(
trajectorySence
)
if
(
TrajectorySceneType
.
TRAJECTORY_TITLE_DZPYQ
.
getType
().
equals
(
trajectorySence
)
||
TrajectorySceneType
.
TRAJECTORY_TITLE_PLPYQ
.
getType
().
equals
(
trajectorySence
)
||
TrajectorySceneType
.
TRAJECTORY_TITLE_BJBQ
.
getType
().
equals
(
trajectorySence
)){
trajectory
.
setContent
(
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/welcome/WelcomeService.java
View file @
0b70e5a
...
...
@@ -7,6 +7,7 @@ import com.alibaba.fastjson.JSONObject;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.linkwechat.common.constant.WeConstans
;
import
com.linkwechat.common.enums.MessageType
;
import
com.linkwechat.common.utils.StringUtils
;
import
com.linkwechat.wecom.client.WeCustomerClient
;
import
com.linkwechat.wecom.domain.WeCustomer
;
import
com.linkwechat.wecom.domain.WeQrAttachments
;
...
...
@@ -62,7 +63,7 @@ public class WelcomeService implements ApplicationListener<WeCustomerWelcomeQuer
public
void
onApplicationEvent
(
WeCustomerWelcomeQuery
query
)
{
log
.
info
(
"开始发送欢迎语:query:{}"
,
JSONObject
.
toJSONString
(
query
));
List
<
WeQrAttachments
>
qrAttachments
=
new
ArrayList
<>();
if
(
query
.
getState
().
startsWith
(
WeConstans
.
WE_QR_CODE_PREFIX
)){
if
(
StringUtils
.
isNotEmpty
(
query
.
getState
())
&&
query
.
getState
().
startsWith
(
WeConstans
.
WE_QR_CODE_PREFIX
)){
WeQrCode
weQrCode
=
weQrCodeService
.
getOne
(
new
LambdaQueryWrapper
<
WeQrCode
>()
.
eq
(
WeQrCode:
:
getState
,
query
.
getState
())
.
eq
(
WeQrCode:
:
getDelFlag
,
0
).
last
(
"limit 1"
));
...
...
@@ -73,7 +74,7 @@ public class WelcomeService implements ApplicationListener<WeCustomerWelcomeQuer
}
else
{
log
.
warn
(
"未查询到对应员工活码信息"
);
}
}
else
if
(
query
.
getState
().
startsWith
(
WeConstans
.
WE_QR_XKLQ_PREFIX
)){
}
else
if
(
StringUtils
.
isNotEmpty
(
query
.
getState
())
&&
query
.
getState
().
startsWith
(
WeConstans
.
WE_QR_XKLQ_PREFIX
)){
WeCommunityWeComeMsgVo
welcomeMsgByState
=
weCommunityNewGroupService
.
getWelcomeMsgByState
(
query
.
getState
());
if
(
welcomeMsgByState
!=
null
){
WeQrAttachments
textAtt
=
new
WeQrAttachments
();
...
...
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